We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b84d6e2 commit be99c32Copy full SHA for be99c32
LowLevel/Floats.scope
@@ -4,12 +4,12 @@ import "LowLevel/BitManip";
4
Returns the exponent of @"d" as a raw int.
5
%/
6
func int exponentPart(dec d) {
7
- ret and(shr(rawCastIntToDec(d), 52), 2047);
+ ret and(shr(rawCastDecToInt(d), 52), 2047);
8
}
9
10
/%
11
Returns the mantissa of @"d" as a raw int.
12
13
func int mantissaPart(dec d) {
14
- ret and(rawCastIntToDec(d), 4503599627370495);
+ ret and(rawCastDecToInt(d), 4503599627370495);
15
0 commit comments