diff options
Diffstat (limited to 'test_ieee754.c')
-rw-r--r-- | test_ieee754.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test_ieee754.c b/test_ieee754.c index 85a1c95..65d0aba 100644 --- a/test_ieee754.c +++ b/test_ieee754.c @@ -9,6 +9,7 @@ #include "ieee754.h" +// naiive: return the binary representation of a float (non portable) static unsigned long naiive(float n) { union { @@ -19,6 +20,7 @@ static unsigned long naiive(float n) return u.u; } +// test: test ieee754f against a certain number void test(float a) { float b = ieee754f(naiive(a)); |