summaryrefslogtreecommitdiff
path: root/libm/float/constf.c
diff options
context:
space:
mode:
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;