Untitled Ryu

Created Diff never expires
18 removals
173 lines
184 additions
340 lines
[ RUN ] F2sTest.ExactValueRoundEven
[Suite] float to string
IN=01001000100101010001111110000100
-> 9772932 * 2^-5
-> 9772932 * 2^-5
39091728 * 5^7 / 10^4
39091728 * 5^7 / 10^4
4 3 -54 58
4 3 -54 58
V+=305404140
V+=305404140
V =305404125
V =305404125
V-=305404109
V-=305404109
vr is trailing zeros=true
vr is trailing zeros=true
e10=-3
e10=-3
V+=305404140
V+=305404140
V =305404125
V =305404125
V-=305404109
V-=305404109
vm is trailing zeros=false
vm is trailing zeros=false
vr is trailing zeros=true
vr is trailing zeros=true
V+=30540414
V+=30540414
V =30540412
V =30540412
V-=30540410
V-=30540410
d-10=false
d-10=false
30540412 5
30540412 5
vr is trailing zeros=false
V+=30540414
V =30540412
V-=30540410
O=30540413
EXP=-2
DIGITS=30540413
OLEN=8
EXP=6
/home/clyybber/projects/temporary/nryu/tf2s.nim(73, 27): Check failed: f2s(305404.12) == "3.0540412E5"
f2s(305404.12) was 3.0540413E5
-> 16586816 * 2^-11
66347264 * 5^13 / 10^9
9 4 -51 60
V+=80990314
V =80990312
V-=80990310
vr is trailing zeros=true
e10=-4
V+=80990314
V =80990312
V-=80990310
vm is trailing zeros=false
vr is trailing zeros=true
V+=80990314
V =80990312
V-=80990310
d-10=false
80990312 5
vr is trailing zeros=true
V+=80990314
V =80990312
V-=80990310
O=80990312
EXP=-4
DIGITS=80990312
OLEN=8
EXP=4
-> 9772932 * 2^-5
39091728 * 5^7 / 10^4
4 3 -54 58
V+=305404140
V =305404125
V-=305404109
vr is trailing zeros=true
e10=-3
V+=305404140
V =305404125
V-=305404109
vm is trailing zeros=false
vr is trailing zeros=true
vr is trailing zeros=true
V+=30540414
V+=30540414
V =30540412
V =30540412
V-=30540410
V-=30540410
O=30540412
d-10=false
30540412 5
vr is trailing zeros=false
V+=30540414
V =30540412
V-=30540410
O=30540413
EXP=-2
EXP=-2
DIGITS=30540412
DIGITS=30540413
OLEN=8
OLEN=8
EXP=6
EXP=6
IN=01000101111111010001100001000000
/home/clyybber/projects/temporary/nryu/tf2s.nim(27, 15): Check failed: f2s(305404.12'f32) == "3.0540412E5"
f2s(305404.12'f32) was 3.0540413E5
-> 16586816 * 2^-11
-> 16586816 * 2^-11
66347264 * 5^13 / 10^9
66347264 * 5^13 / 10^9
9 4 -51 60
9 4 -51 60
V+=80990314
V+=80990314
V =80990312
V =80990312
V-=80990310
V-=80990310
vr is trailing zeros=true
vr is trailing zeros=true
e10=-4
e10=-4
V+=80990314
V+=80990314
V =80990312
V =80990312
V-=80990310
V-=80990310
vm is trailing zeros=false
vm is trailing zeros=false
vr is trailing zeros=true
vr is trailing zeros=true
V+=80990314
V+=80990314
V =80990312
V =80990312
V-=80990310
V-=80990310
d-10=false
d-10=false
80990312 5
80990312 5
vr is trailing zeros=true
vr is trailing zeros=true
V+=80990314
V+=80990314
V =80990312
V =80990312
V-=80990310
V-=80990310
O=80990312
O=80990312
EXP=-4
EXP=-4
DIGITS=80990312
DIGITS=80990312
OLEN=8
OLEN=8
EXP=4
EXP=4
[ OK ] F2sTest.ExactValueRoundEven (0 ms)
[FAILED] extract value round even
[ RUN ] F2sTest.LotsOfTrailingZeros
IN=00111001100000000000000000000000
-> 8388608 * 2^-35
-> 8388608 * 2^-35
33554432 * 5^37 / 10^25
33554432 * 5^37 / 10^25
25 12 -33 58
25 12 -33 58
V+=244140639
V+=244140639
V =244140625
V =244140625
V-=244140617
V-=244140617
vr is trailing zeros=true
vr is trailing zeros=true
e10=-12
e10=-12
V+=244140639
V+=244140639
V =244140625
V =244140625
V-=244140617
V-=244140617
vm is trailing zeros=false
vm is trailing zeros=false
vr is trailing zeros=true
vr is trailing zeros=true
V+=24414063
V+=24414063
V =24414062
V =24414062
V-=24414061
V-=24414061
d-10=false
d-10=false
24414062 5
24414062 5
vr is trailing zeros=false
V+=24414063
V =24414062
V-=24414061
O=24414063
EXP=-11
DIGITS=24414063
OLEN=8
EXP=4294967293
/home/clyybber/projects/temporary/nryu/tf2s.nim(80, 28): Check failed: f2s(0.00024414062) == "2.4414062E-4"
f2s(0.00024414062) was 2.4414063E-4
-> 10485760 * 2^-32
41943040 * 5^34 / 10^23
23 11 -35 58
V+=244140636
V =244140625
V-=244140613
vr is trailing zeros=true
e10=-11
V+=244140636
V =244140625
V-=244140613
vm is trailing zeros=false
vr is trailing zeros=true
vr is trailing zeros=true
V+=24414063
V+=24414063
V =24414062
V =24414062
V-=24414061
V-=24414061
O=24414062
d-10=false
24414062 5
vr is trailing zeros=false
V+=24414063
V =24414062
V-=24414061
O=24414063
EXP=-10
DIGITS=24414063
OLEN=8
EXP=4294967294
/home/clyybber/projects/temporary/nryu/tf2s.nim(81, 28): Check failed: f2s(0.0024414062) == "2.4414062E-3"
f2s(0.0024414062) was 2.4414063E-3
-> 9437184 * 2^-31
37748736 * 5^33 / 10^23
23 10 -37 60
V+=43945314
V =43945312
V-=43945310
vr is trailing zeros=true
e10=-10
V+=43945314
V =43945312
V-=43945310
vm is trailing zeros=false
vr is trailing zeros=true
V+=43945314
V =43945312
V-=43945310
d-10=false
43945312 5
vr is trailing zeros=true
V+=43945314
V =43945312
V-=43945310
O=43945312
EXP=-10
DIGITS=43945312
OLEN=8
EXP=4294967294
-> 13631488 * 2^-31
54525952 * 5^33 / 10^23
23 10 -37 60
V+=63476564
V =63476562
V-=63476560
vr is trailing zeros=true
e10=-10
V+=63476564
V =63476562
V-=63476560
vm is trailing zeros=false
vr is trailing zeros=true
V+=63476564
V =63476562
V-=63476560
d-10=false
63476562 5
vr is trailing zeros=true
V+=63476564
V =63476562
V-=63476560
O=63476562
EXP=-10
DIGITS=63476562
OLEN=8
EXP=4294967294
-> 8388608 * 2^-35
33554432 * 5^37 / 10^25
25 12 -33 58
V+=244140639
V =244140625
V-=244140617
vr is trailing zeros=true
e10=-12
V+=244140639
V =244140625
V-=244140617
vm is trailing zeros=false
vr is trailing zeros=true
V+=24414063
V =24414062
V-=24414061
d-10=false
24414062 5
vr is trailing zeros=false
V+=24414063
V =24414062
V-=24414061
O=24414063
EXP=-11
EXP=-11
DIGITS=24414062
DIGITS=24414063
OLEN=8
OLEN=8
EXP=4294967293
EXP=4294967293
IN=00111011001000000000000000000000
/home/clyybber/projects/temporary/nryu/tf2s.nim(27, 15): Check failed: f2s(0.00024414062'f32) == "2.4414062E-4"
f2s(0.00024414062'f32) was 2.4414063E-4
-> 10485760 * 2^-32
-> 10485760 * 2^-32
41943040 * 5^34 / 10^23
41943040 * 5^34 / 10^23
23 11 -35 58
23 11 -35 58
V+=244140636
V+=244140636
V =244140625
V =244140625
V-=244140613
V-=244140613
vr is trailing zeros=true
vr is trailing zeros=true
e10=-11
e10=-11
V+=244140636
V+=244140636
V =244140625
V =244140625
V-=244140613
V-=244140613
vm is trailing zeros=false
vm is trailing zeros=false
vr is trailing zeros=true
vr is trailing zeros=true
V+=24414063
V+=24414063
V =24414062
V =24414062
V-=24414061
V-=24414061
d-10=false
d-10=false
24414062 5
24414062 5
vr is trailing zeros=true
vr is trailing zeros=false
V+=24414063
V+=24414063
V =24414062
V =24414062
V-=24414061
V-=24414061
O=24414062
O=24414063
EXP=-10
EXP=-10
DIGITS=24414062
DIGITS=24414063
OLEN=8
OLEN=8
EXP=4294967294
EXP=4294967294
IN=00111011100100000000000000000000
/home/clyybber/projects/temporary/nryu/tf2s.nim(27, 15): Check failed: f2s(0.0024414062'f32) == "2.4414062E-3"
f2s(0.0024414062'f32) was 2.4414063E-3
-> 9437184 * 2^-31
-> 9437184 * 2^-31
37748736 * 5^33 / 10^23
37748736 * 5^33 / 10^23
23 10 -37 60
23 10 -37 60
V+=43945314
V+=43945314
V =43945312
V =43945312
V-=43945310
V-=43945310
vr is trailing zeros=true
vr is trailing zeros=true
e10=-10
e10=-10
V+=43945314
V+=43945314
V =43945312
V =43945312
V-=43945310
V-=43945310
vm is trailing zeros=false
vm is trailing zeros=false
vr is trailing zeros=true
vr is trailing zeros=true
V+=43945314
V+=43945314
V =43945312
V =43945312
V-=43945310
V-=43945310
d-10=false
d-10=false
43945312 5
43945312 5
vr is trailing zeros=true
vr is trailing zeros=true
V+=43945314
V+=43945314
V =43945312
V =43945312
V-=43945310
V-=43945310
O=43945312
O=43945312
EXP=-10
EXP=-10
DIGITS=43945312
DIGITS=43945312
OLEN=8
OLEN=8
EXP=4294967294
EXP=4294967294
IN=00111011110100000000000000000000
-> 13631488 * 2^-31
-> 13631488 * 2^-31
54525952 * 5^33 / 10^23
54525952 * 5^33 / 10^23
23 10 -37 60
23 10 -37 60
V+=63476564
V+=63476564
V =63476562
V =63476562
V-=63476560
V-=63476560
vr is trailing zeros=true
vr is trailing zeros=true
e10=-10
e10=-10
V+=63476564
V+=63476564
V =63476562
V =63476562
V-=63476560
V-=63476560
vm is trailing zeros=false
vm is trailing zeros=false
vr is trailing zeros=true
vr is trailing zeros=true
V+=63476564
V+=63476564
V =63476562
V =63476562
V-=63476560
V-=63476560
d-10=false
d-10=false
63476562 5
63476562 5
vr is trailing zeros=true
vr is trailing zeros=true
V+=63476564
V+=63476564
V =63476562
V =63476562
V-=63476560
V-=63476560
O=63476562
O=63476562
EXP=-10
EXP=-10
DIGITS=63476562
DIGITS=63476562
OLEN=8
OLEN=8
EXP=4294967294
EXP=4294967294
[ OK ] F2sTest.LotsOfTrailingZeros (0 ms)
[FAILED] lots of trailing zeros