db3a0f1435
strings and floating point.
1183 lines
26 KiB
Plaintext
1183 lines
26 KiB
Plaintext
|
|
Input: 1.23
|
|
|
|
strtoxL consumes 4 bytes and returns 33
|
|
with bits = #3fff0000 9d70a3d7 a3d70a4
|
|
g_xLfmt(0) gives 4 bytes: "1.23"
|
|
|
|
strtoIxL returns 33, consuming 4 bytes.
|
|
fI[0] = #3fff0000 9d70a3d7 a3d70a3
|
|
fI[1] = #3fff0000 9d70a3d7 a3d70a4
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.23e+20
|
|
|
|
strtoxL consumes 8 bytes and returns 1
|
|
with bits = #40410000 d55ef90a 2da18000
|
|
g_xLfmt(0) gives 8 bytes: "1.23e+20"
|
|
|
|
strtoIxL returns 1, consuming 8 bytes.
|
|
fI[0] == fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.23e-20
|
|
|
|
strtoxL consumes 8 bytes and returns 17
|
|
with bits = #3fbc0000 e857267b b3a984f2
|
|
g_xLfmt(0) gives 8 bytes: "1.23e-20"
|
|
|
|
strtoIxL returns 17, consuming 8 bytes.
|
|
fI[0] = #3fbc0000 e857267b b3a984f2
|
|
fI[1] = #3fbc0000 e857267b b3a984f3
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.23456789
|
|
|
|
strtoxL consumes 10 bytes and returns 33
|
|
with bits = #3fff0000 9e065214 1ef0dbf6
|
|
g_xLfmt(0) gives 10 bytes: "1.23456789"
|
|
|
|
strtoIxL returns 33, consuming 10 bytes.
|
|
fI[0] = #3fff0000 9e065214 1ef0dbf5
|
|
fI[1] = #3fff0000 9e065214 1ef0dbf6
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.23456589e+20
|
|
|
|
strtoxL consumes 14 bytes and returns 1
|
|
with bits = #40410000 d629bd33 5ccba00
|
|
g_xLfmt(0) gives 14 bytes: "1.23456589e+20"
|
|
|
|
strtoIxL returns 1, consuming 14 bytes.
|
|
fI[0] == fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.23e+30
|
|
|
|
strtoxL consumes 8 bytes and returns 17
|
|
with bits = #40620000 f8658274 7dbc824a
|
|
g_xLfmt(0) gives 8 bytes: "1.23e+30"
|
|
|
|
strtoIxL returns 17, consuming 8 bytes.
|
|
fI[0] = #40620000 f8658274 7dbc824a
|
|
fI[1] = #40620000 f8658274 7dbc824b
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.23e-30
|
|
|
|
strtoxL consumes 8 bytes and returns 17
|
|
with bits = #3f9b0000 c794337a 808554eb
|
|
g_xLfmt(0) gives 8 bytes: "1.23e-30"
|
|
|
|
strtoIxL returns 17, consuming 8 bytes.
|
|
fI[0] = #3f9b0000 c794337a 808554eb
|
|
fI[1] = #3f9b0000 c794337a 808554ec
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.23456789e-20
|
|
|
|
strtoxL consumes 14 bytes and returns 17
|
|
with bits = #3fbc0000 e9340a38 f3d6d352
|
|
g_xLfmt(0) gives 14 bytes: "1.23456789e-20"
|
|
|
|
strtoIxL returns 17, consuming 14 bytes.
|
|
fI[0] = #3fbc0000 e9340a38 f3d6d352
|
|
fI[1] = #3fbc0000 e9340a38 f3d6d353
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.23456789e-30
|
|
|
|
strtoxL consumes 14 bytes and returns 17
|
|
with bits = #3f9b0000 c851f19d decca8fc
|
|
g_xLfmt(0) gives 14 bytes: "1.23456789e-30"
|
|
|
|
strtoIxL returns 17, consuming 14 bytes.
|
|
fI[0] = #3f9b0000 c851f19d decca8fc
|
|
fI[1] = #3f9b0000 c851f19d decca8fd
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.234567890123456789
|
|
|
|
strtoxL consumes 20 bytes and returns 17
|
|
with bits = #3fff0000 9e065214 62cfdb8d
|
|
g_xLfmt(0) gives 20 bytes: "1.234567890123456789"
|
|
|
|
strtoIxL returns 17, consuming 20 bytes.
|
|
fI[0] = #3fff0000 9e065214 62cfdb8d
|
|
fI[1] = #3fff0000 9e065214 62cfdb8e
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.23456789012345678901234567890123456789
|
|
|
|
strtoxL consumes 40 bytes and returns 17
|
|
with bits = #3fff0000 9e065214 62cfdb8d
|
|
g_xLfmt(0) gives 20 bytes: "1.234567890123456789"
|
|
|
|
strtoIxL returns 17, consuming 40 bytes.
|
|
fI[0] = #3fff0000 9e065214 62cfdb8d
|
|
fI[1] = #3fff0000 9e065214 62cfdb8e
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.23e306
|
|
|
|
strtoxL consumes 8 bytes and returns 17
|
|
with bits = #43f70000 e033b668 e30fa6d5
|
|
g_xLfmt(0) gives 9 bytes: "1.23e+306"
|
|
|
|
strtoIxL returns 17, consuming 8 bytes.
|
|
fI[0] = #43f70000 e033b668 e30fa6d5
|
|
fI[1] = #43f70000 e033b668 e30fa6d6
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.23e-306
|
|
|
|
strtoxL consumes 9 bytes and returns 33
|
|
with bits = #3c060000 dd1dc2ed 1cb73f25
|
|
g_xLfmt(0) gives 9 bytes: "1.23e-306"
|
|
|
|
strtoIxL returns 33, consuming 9 bytes.
|
|
fI[0] = #3c060000 dd1dc2ed 1cb73f24
|
|
fI[1] = #3c060000 dd1dc2ed 1cb73f25
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.23e-320
|
|
|
|
strtoxL consumes 9 bytes and returns 33
|
|
with bits = #3bd80000 9b98c371 844c3f1a
|
|
g_xLfmt(0) gives 9 bytes: "1.23e-320"
|
|
|
|
strtoIxL returns 33, consuming 9 bytes.
|
|
fI[0] = #3bd80000 9b98c371 844c3f19
|
|
fI[1] = #3bd80000 9b98c371 844c3f1a
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.23e-20
|
|
|
|
strtoxL consumes 8 bytes and returns 17
|
|
with bits = #3fbc0000 e857267b b3a984f2
|
|
g_xLfmt(0) gives 8 bytes: "1.23e-20"
|
|
|
|
strtoIxL returns 17, consuming 8 bytes.
|
|
fI[0] = #3fbc0000 e857267b b3a984f2
|
|
fI[1] = #3fbc0000 e857267b b3a984f3
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.23456789e307
|
|
|
|
strtoxL consumes 14 bytes and returns 17
|
|
with bits = #43fb0000 8ca58a5e d766de75
|
|
g_xLfmt(0) gives 15 bytes: "1.23456789e+307"
|
|
|
|
strtoIxL returns 17, consuming 14 bytes.
|
|
fI[0] = #43fb0000 8ca58a5e d766de75
|
|
fI[1] = #43fb0000 8ca58a5e d766de76
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.23456589e-307
|
|
|
|
strtoxL consumes 15 bytes and returns 17
|
|
with bits = #3c030000 b18cb5dc c22fd369
|
|
g_xLfmt(0) gives 15 bytes: "1.23456589e-307"
|
|
|
|
strtoIxL returns 17, consuming 15 bytes.
|
|
fI[0] = #3c030000 b18cb5dc c22fd369
|
|
fI[1] = #3c030000 b18cb5dc c22fd36a
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.234567890123456789
|
|
|
|
strtoxL consumes 20 bytes and returns 17
|
|
with bits = #3fff0000 9e065214 62cfdb8d
|
|
g_xLfmt(0) gives 20 bytes: "1.234567890123456789"
|
|
|
|
strtoIxL returns 17, consuming 20 bytes.
|
|
fI[0] = #3fff0000 9e065214 62cfdb8d
|
|
fI[1] = #3fff0000 9e065214 62cfdb8e
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.234567890123456789e301
|
|
|
|
strtoxL consumes 24 bytes and returns 33
|
|
with bits = #43e70000 937a8baf ab20980c
|
|
g_xLfmt(0) gives 25 bytes: "1.234567890123456789e+301"
|
|
|
|
strtoIxL returns 33, consuming 24 bytes.
|
|
fI[0] = #43e70000 937a8baf ab20980b
|
|
fI[1] = #43e70000 937a8baf ab20980c
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.234567890123456789e-301
|
|
|
|
strtoxL consumes 25 bytes and returns 33
|
|
with bits = #3c170000 a953271a 5d069ad9
|
|
g_xLfmt(0) gives 25 bytes: "1.234567890123456789e-301"
|
|
|
|
strtoIxL returns 33, consuming 25 bytes.
|
|
fI[0] = #3c170000 a953271a 5d069ad8
|
|
fI[1] = #3c170000 a953271a 5d069ad9
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.234567890123456789e-321
|
|
|
|
strtoxL consumes 25 bytes and returns 33
|
|
with bits = #3bd40000 f9e11b4c ea6dcce9
|
|
g_xLfmt(0) gives 25 bytes: "1.234567890123456789e-321"
|
|
|
|
strtoIxL returns 33, consuming 25 bytes.
|
|
fI[0] = #3bd40000 f9e11b4c ea6dcce8
|
|
fI[1] = #3bd40000 f9e11b4c ea6dcce9
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1e23
|
|
|
|
strtoxL consumes 4 bytes and returns 1
|
|
with bits = #404b0000 a968163f a57b400
|
|
g_xLfmt(0) gives 5 bytes: "1e+23"
|
|
|
|
strtoIxL returns 1, consuming 4 bytes.
|
|
fI[0] == fI[1] == strtoxL
|
|
|
|
|
|
Input: 1e310
|
|
|
|
strtoxL consumes 5 bytes and returns 33
|
|
with bits = #44040000 de81e40a 34bcf50
|
|
g_xLfmt(0) gives 6 bytes: "1e+310"
|
|
|
|
strtoIxL returns 33, consuming 5 bytes.
|
|
fI[0] = #44040000 de81e40a 34bcf4f
|
|
fI[1] = #44040000 de81e40a 34bcf50
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 9.0259718793241475e-277
|
|
|
|
strtoxL consumes 23 bytes and returns 33
|
|
with bits = #3c690000 ffffffff fffffcf7
|
|
g_xLfmt(0) gives 23 bytes: "9.0259718793241475e-277"
|
|
|
|
strtoIxL returns 33, consuming 23 bytes.
|
|
fI[0] = #3c690000 ffffffff fffffcf6
|
|
fI[1] = #3c690000 ffffffff fffffcf7
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 9.025971879324147880346310405869e-277
|
|
|
|
strtoxL consumes 37 bytes and returns 17
|
|
with bits = #3c6a0000 80000000 0
|
|
g_xLfmt(0) gives 26 bytes: "9.0259718793241478803e-277"
|
|
|
|
strtoIxL returns 17, consuming 37 bytes.
|
|
fI[0] = #3c6a0000 80000000 0
|
|
fI[1] = #3c6a0000 80000000 1
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 9.025971879324147880346310405868e-277
|
|
|
|
strtoxL consumes 37 bytes and returns 33
|
|
with bits = #3c6a0000 80000000 0
|
|
g_xLfmt(0) gives 26 bytes: "9.0259718793241478803e-277"
|
|
|
|
strtoIxL returns 33, consuming 37 bytes.
|
|
fI[0] = #3c690000 ffffffff ffffffff
|
|
fI[1] = #3c6a0000 80000000 0
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 2.2250738585072014e-308
|
|
|
|
strtoxL consumes 23 bytes and returns 17
|
|
with bits = #3c010000 80000000 46
|
|
g_xLfmt(0) gives 23 bytes: "2.2250738585072014e-308"
|
|
|
|
strtoIxL returns 17, consuming 23 bytes.
|
|
fI[0] = #3c010000 80000000 46
|
|
fI[1] = #3c010000 80000000 47
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 2.2250738585072013e-308
|
|
|
|
strtoxL consumes 23 bytes and returns 17
|
|
with bits = #3c000000 ffffffff fffffd4f
|
|
g_xLfmt(0) gives 23 bytes: "2.2250738585072013e-308"
|
|
|
|
strtoIxL returns 17, consuming 23 bytes.
|
|
fI[0] = #3c000000 ffffffff fffffd4f
|
|
fI[1] = #3c000000 ffffffff fffffd50
|
|
fI[0] == strtoxL
|
|
|
|
Rounding mode for strtor... changed from 1 (nearest) to 0 (toward zero)
|
|
|
|
Input: 1.1
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 8ccccccc cccccccc
|
|
g_xLfmt(0) gives 21 bytes: "1.0999999999999999999"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 8ccccccc cccccccc
|
|
fI[1] = #3fff0000 8ccccccc cccccccd
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.1
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 8ccccccc cccccccc
|
|
g_xLfmt(0) gives 22 bytes: "-1.0999999999999999999"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 8ccccccc cccccccd
|
|
fI[1] = #bfff0000 8ccccccc cccccccc
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.2
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 99999999 99999999
|
|
g_xLfmt(0) gives 21 bytes: "1.1999999999999999999"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 99999999 99999999
|
|
fI[1] = #3fff0000 99999999 9999999a
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.2
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 99999999 99999999
|
|
g_xLfmt(0) gives 22 bytes: "-1.1999999999999999999"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 99999999 9999999a
|
|
fI[1] = #bfff0000 99999999 99999999
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.3
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 a6666666 66666666
|
|
g_xLfmt(0) gives 3 bytes: "1.3"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 a6666666 66666666
|
|
fI[1] = #3fff0000 a6666666 66666667
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.3
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 a6666666 66666666
|
|
g_xLfmt(0) gives 4 bytes: "-1.3"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 a6666666 66666667
|
|
fI[1] = #bfff0000 a6666666 66666666
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.4
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 b3333333 33333333
|
|
g_xLfmt(0) gives 3 bytes: "1.4"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 b3333333 33333333
|
|
fI[1] = #3fff0000 b3333333 33333334
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.4
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 b3333333 33333333
|
|
g_xLfmt(0) gives 4 bytes: "-1.4"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 b3333333 33333334
|
|
fI[1] = #bfff0000 b3333333 33333333
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.5
|
|
|
|
strtoxL consumes 3 bytes and returns 1
|
|
with bits = #3fff0000 c0000000 0
|
|
g_xLfmt(0) gives 3 bytes: "1.5"
|
|
|
|
strtoIxL returns 1, consuming 3 bytes.
|
|
fI[0] == fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.5
|
|
|
|
strtoxL consumes 4 bytes and returns 9
|
|
with bits = #bfff0000 c0000000 0
|
|
g_xLfmt(0) gives 4 bytes: "-1.5"
|
|
|
|
strtoIxL returns 9, consuming 4 bytes.
|
|
fI[0] == fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.6
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 cccccccc cccccccc
|
|
g_xLfmt(0) gives 21 bytes: "1.5999999999999999999"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 cccccccc cccccccc
|
|
fI[1] = #3fff0000 cccccccc cccccccd
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.6
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 cccccccc cccccccc
|
|
g_xLfmt(0) gives 22 bytes: "-1.5999999999999999999"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 cccccccc cccccccd
|
|
fI[1] = #bfff0000 cccccccc cccccccc
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.7
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 d9999999 99999999
|
|
g_xLfmt(0) gives 21 bytes: "1.6999999999999999999"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 d9999999 99999999
|
|
fI[1] = #3fff0000 d9999999 9999999a
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.7
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 d9999999 99999999
|
|
g_xLfmt(0) gives 22 bytes: "-1.6999999999999999999"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 d9999999 9999999a
|
|
fI[1] = #bfff0000 d9999999 99999999
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.8
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 e6666666 66666666
|
|
g_xLfmt(0) gives 3 bytes: "1.8"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 e6666666 66666666
|
|
fI[1] = #3fff0000 e6666666 66666667
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.8
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 e6666666 66666666
|
|
g_xLfmt(0) gives 4 bytes: "-1.8"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 e6666666 66666667
|
|
fI[1] = #bfff0000 e6666666 66666666
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.9
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 f3333333 33333333
|
|
g_xLfmt(0) gives 3 bytes: "1.9"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 f3333333 33333333
|
|
fI[1] = #3fff0000 f3333333 33333334
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.9
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 f3333333 33333333
|
|
g_xLfmt(0) gives 4 bytes: "-1.9"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 f3333333 33333334
|
|
fI[1] = #bfff0000 f3333333 33333333
|
|
fI[1] == strtoxL
|
|
|
|
Rounding mode for strtor... changed from 0 (toward zero) to 1 (nearest)
|
|
|
|
Input: 1.1
|
|
|
|
strtoxL consumes 3 bytes and returns 33
|
|
with bits = #3fff0000 8ccccccc cccccccd
|
|
g_xLfmt(0) gives 3 bytes: "1.1"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 8ccccccc cccccccc
|
|
fI[1] = #3fff0000 8ccccccc cccccccd
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.1
|
|
|
|
strtoxL consumes 4 bytes and returns 41
|
|
with bits = #bfff0000 8ccccccc cccccccd
|
|
g_xLfmt(0) gives 4 bytes: "-1.1"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 8ccccccc cccccccd
|
|
fI[1] = #bfff0000 8ccccccc cccccccc
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.2
|
|
|
|
strtoxL consumes 3 bytes and returns 33
|
|
with bits = #3fff0000 99999999 9999999a
|
|
g_xLfmt(0) gives 3 bytes: "1.2"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 99999999 99999999
|
|
fI[1] = #3fff0000 99999999 9999999a
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.2
|
|
|
|
strtoxL consumes 4 bytes and returns 41
|
|
with bits = #bfff0000 99999999 9999999a
|
|
g_xLfmt(0) gives 4 bytes: "-1.2"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 99999999 9999999a
|
|
fI[1] = #bfff0000 99999999 99999999
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.3
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 a6666666 66666666
|
|
g_xLfmt(0) gives 3 bytes: "1.3"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 a6666666 66666666
|
|
fI[1] = #3fff0000 a6666666 66666667
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.3
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 a6666666 66666666
|
|
g_xLfmt(0) gives 4 bytes: "-1.3"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 a6666666 66666667
|
|
fI[1] = #bfff0000 a6666666 66666666
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.4
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 b3333333 33333333
|
|
g_xLfmt(0) gives 3 bytes: "1.4"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 b3333333 33333333
|
|
fI[1] = #3fff0000 b3333333 33333334
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.4
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 b3333333 33333333
|
|
g_xLfmt(0) gives 4 bytes: "-1.4"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 b3333333 33333334
|
|
fI[1] = #bfff0000 b3333333 33333333
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.5
|
|
|
|
strtoxL consumes 3 bytes and returns 1
|
|
with bits = #3fff0000 c0000000 0
|
|
g_xLfmt(0) gives 3 bytes: "1.5"
|
|
|
|
strtoIxL returns 1, consuming 3 bytes.
|
|
fI[0] == fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.5
|
|
|
|
strtoxL consumes 4 bytes and returns 9
|
|
with bits = #bfff0000 c0000000 0
|
|
g_xLfmt(0) gives 4 bytes: "-1.5"
|
|
|
|
strtoIxL returns 9, consuming 4 bytes.
|
|
fI[0] == fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.6
|
|
|
|
strtoxL consumes 3 bytes and returns 33
|
|
with bits = #3fff0000 cccccccc cccccccd
|
|
g_xLfmt(0) gives 3 bytes: "1.6"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 cccccccc cccccccc
|
|
fI[1] = #3fff0000 cccccccc cccccccd
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.6
|
|
|
|
strtoxL consumes 4 bytes and returns 41
|
|
with bits = #bfff0000 cccccccc cccccccd
|
|
g_xLfmt(0) gives 4 bytes: "-1.6"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 cccccccc cccccccd
|
|
fI[1] = #bfff0000 cccccccc cccccccc
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.7
|
|
|
|
strtoxL consumes 3 bytes and returns 33
|
|
with bits = #3fff0000 d9999999 9999999a
|
|
g_xLfmt(0) gives 3 bytes: "1.7"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 d9999999 99999999
|
|
fI[1] = #3fff0000 d9999999 9999999a
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.7
|
|
|
|
strtoxL consumes 4 bytes and returns 41
|
|
with bits = #bfff0000 d9999999 9999999a
|
|
g_xLfmt(0) gives 4 bytes: "-1.7"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 d9999999 9999999a
|
|
fI[1] = #bfff0000 d9999999 99999999
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.8
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 e6666666 66666666
|
|
g_xLfmt(0) gives 3 bytes: "1.8"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 e6666666 66666666
|
|
fI[1] = #3fff0000 e6666666 66666667
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.8
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 e6666666 66666666
|
|
g_xLfmt(0) gives 4 bytes: "-1.8"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 e6666666 66666667
|
|
fI[1] = #bfff0000 e6666666 66666666
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.9
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 f3333333 33333333
|
|
g_xLfmt(0) gives 3 bytes: "1.9"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 f3333333 33333333
|
|
fI[1] = #3fff0000 f3333333 33333334
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.9
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 f3333333 33333333
|
|
g_xLfmt(0) gives 4 bytes: "-1.9"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 f3333333 33333334
|
|
fI[1] = #bfff0000 f3333333 33333333
|
|
fI[1] == strtoxL
|
|
|
|
Rounding mode for strtor... changed from 1 (nearest) to 2 (toward +Infinity)
|
|
|
|
Input: 1.1
|
|
|
|
strtoxL consumes 3 bytes and returns 33
|
|
with bits = #3fff0000 8ccccccc cccccccd
|
|
g_xLfmt(0) gives 3 bytes: "1.1"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 8ccccccc cccccccc
|
|
fI[1] = #3fff0000 8ccccccc cccccccd
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.1
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 8ccccccc cccccccc
|
|
g_xLfmt(0) gives 22 bytes: "-1.0999999999999999999"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 8ccccccc cccccccd
|
|
fI[1] = #bfff0000 8ccccccc cccccccc
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.2
|
|
|
|
strtoxL consumes 3 bytes and returns 33
|
|
with bits = #3fff0000 99999999 9999999a
|
|
g_xLfmt(0) gives 3 bytes: "1.2"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 99999999 99999999
|
|
fI[1] = #3fff0000 99999999 9999999a
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.2
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 99999999 99999999
|
|
g_xLfmt(0) gives 22 bytes: "-1.1999999999999999999"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 99999999 9999999a
|
|
fI[1] = #bfff0000 99999999 99999999
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.3
|
|
|
|
strtoxL consumes 3 bytes and returns 33
|
|
with bits = #3fff0000 a6666666 66666667
|
|
g_xLfmt(0) gives 21 bytes: "1.3000000000000000001"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 a6666666 66666666
|
|
fI[1] = #3fff0000 a6666666 66666667
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.3
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 a6666666 66666666
|
|
g_xLfmt(0) gives 4 bytes: "-1.3"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 a6666666 66666667
|
|
fI[1] = #bfff0000 a6666666 66666666
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.4
|
|
|
|
strtoxL consumes 3 bytes and returns 33
|
|
with bits = #3fff0000 b3333333 33333334
|
|
g_xLfmt(0) gives 21 bytes: "1.4000000000000000001"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 b3333333 33333333
|
|
fI[1] = #3fff0000 b3333333 33333334
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.4
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 b3333333 33333333
|
|
g_xLfmt(0) gives 4 bytes: "-1.4"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 b3333333 33333334
|
|
fI[1] = #bfff0000 b3333333 33333333
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.5
|
|
|
|
strtoxL consumes 3 bytes and returns 1
|
|
with bits = #3fff0000 c0000000 0
|
|
g_xLfmt(0) gives 3 bytes: "1.5"
|
|
|
|
strtoIxL returns 1, consuming 3 bytes.
|
|
fI[0] == fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.5
|
|
|
|
strtoxL consumes 4 bytes and returns 9
|
|
with bits = #bfff0000 c0000000 0
|
|
g_xLfmt(0) gives 4 bytes: "-1.5"
|
|
|
|
strtoIxL returns 9, consuming 4 bytes.
|
|
fI[0] == fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.6
|
|
|
|
strtoxL consumes 3 bytes and returns 33
|
|
with bits = #3fff0000 cccccccc cccccccd
|
|
g_xLfmt(0) gives 3 bytes: "1.6"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 cccccccc cccccccc
|
|
fI[1] = #3fff0000 cccccccc cccccccd
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.6
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 cccccccc cccccccc
|
|
g_xLfmt(0) gives 22 bytes: "-1.5999999999999999999"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 cccccccc cccccccd
|
|
fI[1] = #bfff0000 cccccccc cccccccc
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.7
|
|
|
|
strtoxL consumes 3 bytes and returns 33
|
|
with bits = #3fff0000 d9999999 9999999a
|
|
g_xLfmt(0) gives 3 bytes: "1.7"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 d9999999 99999999
|
|
fI[1] = #3fff0000 d9999999 9999999a
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.7
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 d9999999 99999999
|
|
g_xLfmt(0) gives 22 bytes: "-1.6999999999999999999"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 d9999999 9999999a
|
|
fI[1] = #bfff0000 d9999999 99999999
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.8
|
|
|
|
strtoxL consumes 3 bytes and returns 33
|
|
with bits = #3fff0000 e6666666 66666667
|
|
g_xLfmt(0) gives 21 bytes: "1.8000000000000000001"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 e6666666 66666666
|
|
fI[1] = #3fff0000 e6666666 66666667
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.8
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 e6666666 66666666
|
|
g_xLfmt(0) gives 4 bytes: "-1.8"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 e6666666 66666667
|
|
fI[1] = #bfff0000 e6666666 66666666
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.9
|
|
|
|
strtoxL consumes 3 bytes and returns 33
|
|
with bits = #3fff0000 f3333333 33333334
|
|
g_xLfmt(0) gives 21 bytes: "1.9000000000000000001"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 f3333333 33333333
|
|
fI[1] = #3fff0000 f3333333 33333334
|
|
fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.9
|
|
|
|
strtoxL consumes 4 bytes and returns 25
|
|
with bits = #bfff0000 f3333333 33333333
|
|
g_xLfmt(0) gives 4 bytes: "-1.9"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 f3333333 33333334
|
|
fI[1] = #bfff0000 f3333333 33333333
|
|
fI[1] == strtoxL
|
|
|
|
Rounding mode for strtor... changed from 2 (toward +Infinity) to 3 (toward -Infinity)
|
|
|
|
Input: 1.1
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 8ccccccc cccccccc
|
|
g_xLfmt(0) gives 21 bytes: "1.0999999999999999999"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 8ccccccc cccccccc
|
|
fI[1] = #3fff0000 8ccccccc cccccccd
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.1
|
|
|
|
strtoxL consumes 4 bytes and returns 41
|
|
with bits = #bfff0000 8ccccccc cccccccd
|
|
g_xLfmt(0) gives 4 bytes: "-1.1"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 8ccccccc cccccccd
|
|
fI[1] = #bfff0000 8ccccccc cccccccc
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.2
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 99999999 99999999
|
|
g_xLfmt(0) gives 21 bytes: "1.1999999999999999999"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 99999999 99999999
|
|
fI[1] = #3fff0000 99999999 9999999a
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.2
|
|
|
|
strtoxL consumes 4 bytes and returns 41
|
|
with bits = #bfff0000 99999999 9999999a
|
|
g_xLfmt(0) gives 4 bytes: "-1.2"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 99999999 9999999a
|
|
fI[1] = #bfff0000 99999999 99999999
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.3
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 a6666666 66666666
|
|
g_xLfmt(0) gives 3 bytes: "1.3"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 a6666666 66666666
|
|
fI[1] = #3fff0000 a6666666 66666667
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.3
|
|
|
|
strtoxL consumes 4 bytes and returns 41
|
|
with bits = #bfff0000 a6666666 66666667
|
|
g_xLfmt(0) gives 22 bytes: "-1.3000000000000000001"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 a6666666 66666667
|
|
fI[1] = #bfff0000 a6666666 66666666
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.4
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 b3333333 33333333
|
|
g_xLfmt(0) gives 3 bytes: "1.4"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 b3333333 33333333
|
|
fI[1] = #3fff0000 b3333333 33333334
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.4
|
|
|
|
strtoxL consumes 4 bytes and returns 41
|
|
with bits = #bfff0000 b3333333 33333334
|
|
g_xLfmt(0) gives 22 bytes: "-1.4000000000000000001"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 b3333333 33333334
|
|
fI[1] = #bfff0000 b3333333 33333333
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.5
|
|
|
|
strtoxL consumes 3 bytes and returns 1
|
|
with bits = #3fff0000 c0000000 0
|
|
g_xLfmt(0) gives 3 bytes: "1.5"
|
|
|
|
strtoIxL returns 1, consuming 3 bytes.
|
|
fI[0] == fI[1] == strtoxL
|
|
|
|
|
|
Input: -1.5
|
|
|
|
strtoxL consumes 4 bytes and returns 9
|
|
with bits = #bfff0000 c0000000 0
|
|
g_xLfmt(0) gives 4 bytes: "-1.5"
|
|
|
|
strtoIxL returns 9, consuming 4 bytes.
|
|
fI[0] == fI[1] == strtoxL
|
|
|
|
|
|
Input: 1.6
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 cccccccc cccccccc
|
|
g_xLfmt(0) gives 21 bytes: "1.5999999999999999999"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 cccccccc cccccccc
|
|
fI[1] = #3fff0000 cccccccc cccccccd
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.6
|
|
|
|
strtoxL consumes 4 bytes and returns 41
|
|
with bits = #bfff0000 cccccccc cccccccd
|
|
g_xLfmt(0) gives 4 bytes: "-1.6"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 cccccccc cccccccd
|
|
fI[1] = #bfff0000 cccccccc cccccccc
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.7
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 d9999999 99999999
|
|
g_xLfmt(0) gives 21 bytes: "1.6999999999999999999"
|
|
|
|
strtoIxL returns 33, consuming 3 bytes.
|
|
fI[0] = #3fff0000 d9999999 99999999
|
|
fI[1] = #3fff0000 d9999999 9999999a
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.7
|
|
|
|
strtoxL consumes 4 bytes and returns 41
|
|
with bits = #bfff0000 d9999999 9999999a
|
|
g_xLfmt(0) gives 4 bytes: "-1.7"
|
|
|
|
strtoIxL returns 41, consuming 4 bytes.
|
|
fI[0] = #bfff0000 d9999999 9999999a
|
|
fI[1] = #bfff0000 d9999999 99999999
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.8
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 e6666666 66666666
|
|
g_xLfmt(0) gives 3 bytes: "1.8"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 e6666666 66666666
|
|
fI[1] = #3fff0000 e6666666 66666667
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.8
|
|
|
|
strtoxL consumes 4 bytes and returns 41
|
|
with bits = #bfff0000 e6666666 66666667
|
|
g_xLfmt(0) gives 22 bytes: "-1.8000000000000000001"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 e6666666 66666667
|
|
fI[1] = #bfff0000 e6666666 66666666
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: 1.9
|
|
|
|
strtoxL consumes 3 bytes and returns 17
|
|
with bits = #3fff0000 f3333333 33333333
|
|
g_xLfmt(0) gives 3 bytes: "1.9"
|
|
|
|
strtoIxL returns 17, consuming 3 bytes.
|
|
fI[0] = #3fff0000 f3333333 33333333
|
|
fI[1] = #3fff0000 f3333333 33333334
|
|
fI[0] == strtoxL
|
|
|
|
|
|
Input: -1.9
|
|
|
|
strtoxL consumes 4 bytes and returns 41
|
|
with bits = #bfff0000 f3333333 33333334
|
|
g_xLfmt(0) gives 22 bytes: "-1.9000000000000000001"
|
|
|
|
strtoIxL returns 25, consuming 4 bytes.
|
|
fI[0] = #bfff0000 f3333333 33333334
|
|
fI[1] = #bfff0000 f3333333 33333333
|
|
fI[0] == strtoxL
|
|
|