diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-10-10 22:07:11 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-10-10 22:07:11 +0000 |
commit | 2d14aa0f41a43d92d12477d07ea0f5768ebcdffc (patch) | |
tree | dabae06d2576492e33cb0f0aa9b840cf4e6581a9 /lib/libc/arch/sh/gen/infinity.c | |
parent | 05ddbd26a5e752cb076b39a59d4da58b6fe3d365 (diff) |
Preliminary userland bits for OpenBSD/landisk, many things coming from
NetBSD.
Diffstat (limited to 'lib/libc/arch/sh/gen/infinity.c')
-rw-r--r-- | lib/libc/arch/sh/gen/infinity.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/arch/sh/gen/infinity.c b/lib/libc/arch/sh/gen/infinity.c new file mode 100644 index 00000000000..a8006550db2 --- /dev/null +++ b/lib/libc/arch/sh/gen/infinity.c @@ -0,0 +1,9 @@ +/* $OpenBSD: infinity.c,v 1.1 2006/10/10 22:07:10 miod Exp $ */ + +/* infinity.c */ + +#include <math.h> + +/* bytes for +Infinity on a SH4 FPU (double precision) */ +char __infinity[] __attribute__((__aligned__(sizeof(double)))) = + { 0x7f, (char)0xf0, 0, 0, 0, 0, 0, 0 }; |