genericopenlibs/openenvcore/libc/src/arm/gen/infinity.c
changeset 0 e4d67989cc36
child 18 47c74d1534e1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/genericopenlibs/openenvcore/libc/src/arm/gen/infinity.c	Tue Feb 02 02:01:42 2010 +0200
@@ -0,0 +1,34 @@
+/*--------------------------------------------------------------------
+ *© Portions copyright (c) 2005 Nokia Corporation.  All rights reserved.
+ *--------------------------------------------------------------------
+*/
+/*
+ * infinity.c
+ */
+
+#include <sys/cdefs.h>
+#ifndef __SYMBIAN32__
+__FBSDID("$FreeBSD: src/lib/libc/arm/gen/infinity.c,v 1.1 2004/05/14 12:04:30 cognet Exp $");
+#endif //__SYMBIAN32__
+
+#include <math.h>
+#ifndef __SYMBIAN32__
+
+/* bytes for +Infinity on a 387 */
+const union __infinity_un __infinity = { 
+#if BYTE_ORDER == BIG_ENDIAN
+	{ 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 }
+#else
+	{ 0, 0, 0, 0, 0, 0, 0xf0, 0x7f }
+#endif
+};
+
+/* bytes for NaN */
+const union __nan_un __nan = {
+#if BYTE_ORDER == BIG_ENDIAN
+	{0xff, 0xc0, 0, 0}
+#else
+	{ 0, 0, 0xc0, 0xff }
+#endif
+};
+#endif //__SYMBIAN32__