summaryrefslogtreecommitdiffstats
path: root/modules/fdlibm/src/fdlibm.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/fdlibm/src/fdlibm.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/modules/fdlibm/src/fdlibm.h b/modules/fdlibm/src/fdlibm.h
new file mode 100644
index 0000000000..048e763952
--- /dev/null
+++ b/modules/fdlibm/src/fdlibm.h
@@ -0,0 +1,84 @@
+/*
+ * ====================================================
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ *
+ * Developed at SunPro, a Sun Microsystems, Inc. business.
+ * Permission to use, copy, modify, and distribute this
+ * software is freely granted, provided that this notice
+ * is preserved.
+ * ====================================================
+ */
+
+/*
+ * from: @(#)fdlibm.h 5.1 93/09/24
+ * $FreeBSD$
+ */
+
+#ifndef mozilla_imported_fdlibm_h
+#define mozilla_imported_fdlibm_h
+
+namespace fdlibm {
+
+#ifndef M_PI_2
+#define M_PI_2 1.57079632679489661923 /* pi/2 */
+#endif
+
+double acos(double);
+double asin(double);
+double atan(double);
+double atan2(double, double);
+double cos(double);
+double sin(double);
+double tan(double);
+
+double cosh(double);
+double sinh(double);
+double tanh(double);
+
+double exp(double);
+double log(double);
+double log10(double);
+
+double pow(double, double);
+
+double ceil(double);
+double fabs(double);
+double floor(double);
+
+double acosh(double);
+double asinh(double);
+double atanh(double);
+double cbrt(double);
+double exp2(double);
+double expm1(double);
+double hypot(double, double);
+double log1p(double);
+double log2(double);
+double rint(double);
+double copysign(double, double);
+double nearbyint(double);
+double scalbn(double, int);
+double trunc(double);
+float acosf(float);
+float asinf(float);
+float atanf(float);
+float cosf(float);
+float sinf(float);
+float tanf(float);
+float exp2f(float);
+float expf(float);
+float logf(float);
+float powf(float, float);
+float sqrtf(float);
+
+float ceilf(float);
+float fabsf(float);
+float floorf(float);
+float nearbyintf(float);
+float rintf(float);
+float scalbnf(float, int);
+float truncf(float);
+
+} /* namespace fdlibm */
+
+#endif /* !mozilla_imported_fdlibm_h */