mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-20 18:10:07 +00:00
portability tooling
This commit is contained in:
parent
adff8f73d6
commit
63ff2829f7
1 changed files with 20 additions and 0 deletions
20
c/experimental/fltres.c
Normal file
20
c/experimental/fltres.c
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include <stdio.h>
|
||||
|
||||
static void show(long long i) {
|
||||
double d = (double) i;
|
||||
long long j = (long long) d;
|
||||
printf("%016llx %lld %lf %016llx\n", i, i, d, j);
|
||||
}
|
||||
|
||||
int main() {
|
||||
show(0x7ffffffffffff9ff);
|
||||
show(0x7ffffffffffffa00);
|
||||
show(0x7ffffffffffffbff);
|
||||
show(0x7ffffffffffffc00);
|
||||
show(0x7ffffffffffffdff);
|
||||
show(0x7ffffffffffffe00);
|
||||
show(0x7ffffffffffffffe);
|
||||
show(0x7fffffffffffffff);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue