Message305191
I have got both (!) results in the same binary on NetBSD (gcc 4.8.5).
tan(1.57079632679489611) = 1978937966095219.000000
tan(0x1.921fb54442d16p+0) = 0x1.c1f559a01adccp+50
tan(1.57079632679489611) = 1978945885716843.000000
tan(0x1.921fb54442d16p+0) = 0x1.c1f5cfa3105acp+50
Seems the first result is calculated at compile time while the second result is calculated at run time.
On OpenBSD (gcc 4.2.1):
tan(1.57079632679489611) = 1978945885716843.000000
tan(0x1.921fb54442d16p+0) = 0x1.c1f5cfa3105acp+50
tan(1.57079632679489611) = 1978945885716843.000000
tan(0x1.921fb54442d16p+0) = 0x1.c1f5cfa3105acp+50
On Linux (gcc 7.2.0) and FreeBSD (clang 4.0.0):
tan(1.57079632679489611) = 1978937966095219.000000
tan(0x1.921fb54442d16p+0) = 0x1.c1f559a01adccp+50
tan(1.57079632679489611) = 1978937966095219.000000
tan(0x1.921fb54442d16p+0) = 0x1.c1f559a01adccp+50 |
|
Date |
User |
Action |
Args |
2017-10-29 20:58:34 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, tim.peters, rhettinger, mark.dickinson, skrah, jeff.allen, davin |
2017-10-29 20:58:34 | serhiy.storchaka | set | messageid: <1509310714.69.0.213398074469.issue31630@psf.upfronthosting.co.za> |
2017-10-29 20:58:34 | serhiy.storchaka | link | issue31630 messages |
2017-10-29 20:58:34 | serhiy.storchaka | create | |
|