diff options
author | Quentin Carbonneaux <quentin@c9x.me> | 2022-01-28 11:08:06 +0100 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2022-01-28 11:08:11 +0100 |
commit | 8403dcb709fc013197a9f4af72e67d9ae0c99a03 (patch) | |
tree | 373e1b3d3738682c14bbf9dc67ee8da6e9c13247 /test | |
parent | 2fd3a95d6f984b10b7169dbaa47f6b81324a2755 (diff) | |
download | roux-8403dcb709fc013197a9f4af72e67d9ae0c99a03.tar.gz |
fix test/fpcnv (wrong spacing)
Diffstat (limited to 'test')
-rw-r--r-- | test/fpcnv.ssa | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/fpcnv.ssa b/test/fpcnv.ssa index 3036168..aea67ac 100644 --- a/test/fpcnv.ssa +++ b/test/fpcnv.ssa @@ -72,36 +72,36 @@ function l $dtol(d %f) { # >>> driver -# #include<limits.h> -# +# #include <limits.h> +# # extern float fneg(float); # extern double ftrunc(double); -# +# # extern float wtos(unsigned int); # extern double wtod(unsigned int); # extern float ltos(long long unsigned int); # extern double ltod(long long unsigned int); -# +# # extern unsigned int stow(float); # extern unsigned int dtow(double); # extern unsigned long long stol(float); # extern unsigned long long dtol(double); -# +# # unsigned long long iin[] = { 0, 1, 16, 234987, 427386245, 0x7fff0000, # 0xffff0000, 23602938196141, 72259248152500195, 9589010795705032704ull, # 0xdcf5fbe299d0148aull, 0xffffffff00000000ull, -1 }; -# +# # double fin[] = { 0.17346516197824458, 442.0760005466251, 4342856.879893436, # 98547543006.49626, 236003043787688.3, 9.499222733527032e+18, # 1.1936266170755652e+19 }; -# +# # int main() { # int i; -# +# # if (fneg(1.23f) != -1.23f) return 1; # if (ftrunc(3.1415) != 3.0) return 2; # if (ftrunc(-1.234) != -1.0) return 3; -# +# # for (i=0; i<sizeof(iin)/sizeof(iin[0]); i++) { # if (wtos(iin[i]) != (float) (unsigned int)iin[i]) # return 4; @@ -111,7 +111,7 @@ function l $dtol(d %f) { # return 6; # if (ltod(iin[i]) != (double)iin[i]) # return 7; -# } +# } # for (i=0; i<sizeof(fin)/sizeof(fin[0]); i++) { # if (stol((float)fin[i]) != (unsigned long long)(float)fin[i]) # return 8; |