diff options
Diffstat (limited to 'lib/libc/arch/i386/gen/nan.c')
-rw-r--r-- | lib/libc/arch/i386/gen/nan.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/arch/i386/gen/nan.c b/lib/libc/arch/i386/gen/nan.c new file mode 100644 index 00000000000..622e73de172 --- /dev/null +++ b/lib/libc/arch/i386/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 an i386 (IEEE single format) */ +char __nan[] __attribute__((__aligned__(sizeof(float)))) = + { 0, 0, 0xc0, 0x7f }; |