4 long double __floatunditf(uint64_t);
6 #include "floatunditf_test.h"
9 int main(int argc
, char *argv
[]) {
15 for (i
=0; i
<numTests
; ++i
) {
16 expected
.hi
= tests
[i
].hi
;
17 expected
.lo
= tests
[i
].lo
;
18 computed
.ld
= __floatunditf(tests
[i
].input
);
20 if ((computed
.hi
!= expected
.hi
) || (computed
.lo
!= expected
.lo
))
22 printf("Error on __floatunditf( 0x%016llx ):\n", tests
[i
].input
);
23 printf("\tExpected %La = ( %a , %a )\n", expected
.ld
, expected
.hi
, expected
.lo
);
24 printf("\tComputed %La = ( %a , %a )\n", computed
.ld
, computed
.hi
, computed
.lo
);