Improve documentation

This commit is contained in:
Elias Batek 2024-05-26 15:07:11 +02:00
parent 5d839f34c2
commit 1aae3674dc
1 changed files with 6 additions and 2 deletions

View File

@ -291,7 +291,9 @@ private {
} }
/++ /++
Integer square root Calculates the square root
of an integer number
as an integer number.
+/ +/
ubyte intSqrt(const ubyte value) @safe pure nothrow @nogc { ubyte intSqrt(const ubyte value) @safe pure nothrow @nogc {
switch (value) { switch (value) {
@ -353,7 +355,9 @@ unittest {
} }
/++ /++
Square root of a normalized integer Calculates the square root
of the normalized value
representated by the input integer number.
Normalization: Normalization:
`[0x00 .. 0xFF]` `[0.0 .. 1.0]` `[0x00 .. 0xFF]` `[0.0 .. 1.0]`