diff options
Diffstat (limited to 'lib/libc/arch/hppa64/gen/nan.c')
-rw-r--r-- | lib/libc/arch/hppa64/gen/nan.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/arch/hppa64/gen/nan.c b/lib/libc/arch/hppa64/gen/nan.c new file mode 100644 index 00000000000..7af3cb148f8 --- /dev/null +++ b/lib/libc/arch/hppa64/gen/nan.c @@ -0,0 +1,9 @@ +/* $OpenBSD: nan.c,v 1.1 2008/07/24 09:31:06 martynas Exp $ */ + +/* Written by Martynas Venckus. Public Domain. */ + +#include <math.h> + +/* bytes for qNaN on a hppa64 (IEEE single format) */ +char __nan[] __attribute__((__aligned__(sizeof(float)))) = + { 0x7f, 0xa0, 0, 0 }; |