summaryrefslogtreecommitdiff
path: root/libm/float/constf.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-10 00:40:28 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-10 00:40:28 +0000
commit1077fa4d772832f77a677ce7fb7c2d513b959e3f (patch)
tree579bee13fb0b58d2800206366ec2caecbb15f3fc /libm/float/constf.c
parent22358dd7ce7bb49792204b698f01a6f69b9c8e08 (diff)
uClibc now has a math library. muahahahaha!
-Erik
Diffstat (limited to 'libm/float/constf.c')
-rw-r--r--libm/float/constf.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/libm/float/constf.c b/libm/float/constf.c
new file mode 100644
index 000000000..bf6b6f657
--- /dev/null
+++ b/libm/float/constf.c
@@ -0,0 +1,20 @@
+
+#ifdef DEC
+/* MAXNUMF = 2^127 * (1 - 2^-24) */
+float MAXNUMF = 1.7014117331926442990585209174225846272e38;
+float MAXLOGF = 88.02969187150841;
+float MINLOGF = -88.7228391116729996; /* log(2^-128) */
+#else
+/* MAXNUMF = 2^128 * (1 - 2^-24) */
+float MAXNUMF = 3.4028234663852885981170418348451692544e38;
+float MAXLOGF = 88.72283905206835;
+float MINLOGF = -103.278929903431851103; /* log(2^-149) */
+#endif
+
+float LOG2EF = 1.44269504088896341;
+float LOGE2F = 0.693147180559945309;
+float SQRTHF = 0.707106781186547524;
+float PIF = 3.141592653589793238;
+float PIO2F = 1.5707963267948966192;
+float PIO4F = 0.7853981633974483096;
+float MACHEPF = 5.9604644775390625E-8;