summaryrefslogtreecommitdiff
path: root/lib/std/test
diff options
context:
space:
mode:
authorS. Gilles <sgilles@math.umd.edu>2018-03-12 06:34:25 -0400
committerS. Gilles <sgilles@math.umd.edu>2018-03-12 23:43:42 -0400
commit6fb7d34b848c598e6398f960dc0a7e240e09a6f5 (patch)
treed2b06b9517bae191014f49199e4f230692953336 /lib/std/test
parent007b768f79b8a45846062086451484a32c1e30fd (diff)
downloadmc-6fb7d34b848c598e6398f960dc0a7e240e09a6f5.tar.gz
Reorder arguments/results of fltXY{explode/assem}
Diffstat (limited to 'lib/std/test')
-rw-r--r--lib/std/test/fltbits.myr32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/std/test/fltbits.myr b/lib/std/test/fltbits.myr
index 1354c70..3907a0f 100644
--- a/lib/std/test/fltbits.myr
+++ b/lib/std/test/fltbits.myr
@@ -112,13 +112,13 @@ const exploderound32 = {c
in order for flt32assem to work as expected
*/
for (n, e, s) : [
- (false, 0, -127),
- (true, 0, -127),
- (false, 0x399, -127),
- (true, 0x23, -127),
- (false, (1 << 23) | 0x23, 45),
- (true, (1 << 23) | 0x3a2, -12),
- (true, (1 << 23) | 0x3a1, -126),
+ (false, -127, 0),
+ (true, -127, 0),
+ (false, -127, 0x399),
+ (true, -127, 0x23),
+ (false, 45, (1 << 23) | 0x23),
+ (true, -12, (1 << 23) | 0x3a2),
+ (true, -126, (1 << 23) | 0x3a1),
][:]
var m, f, t
(m, f, t) = std.flt32explode(std.flt32assem(n, e, s))
@@ -141,15 +141,15 @@ const exploderound64 = {c
in order for flt32assem to work as expected
*/
for (n, e, s) : [
- (false, 0, -1023),
- (true, 0, -1023),
- (false, 0x399, -1023),
- (true, 0x23, -1023),
- (false, (1 << 52) | 0xa33bc, 45),
- (true, (1 << 52) | 0x3, -12),
- (true, (1 << 52) | 0x11aabbcc, -200),
- (true, (1 << 52) | 0x3a1, 543),
- (true, (1 << 52) | 0x99aa228, 1001),
+ (false, -1023, 0),
+ (true, -1023, 0),
+ (false, -1023, 0x399),
+ (true, -1023, 0x23),
+ (false, 45, (1 << 52) | 0xa33bc),
+ (true, -12, (1 << 52) | 0x3),
+ (true, -200, (1 << 52) | 0x11aabbcc),
+ (true, 543, (1 << 52) | 0x3a1),
+ (true, 1001, (1 << 52) | 0x99aa228),
][:]
var m, f, t
(m, f, t) = std.flt64explode(std.flt64assem(n, e, s))