summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Krol <mjkrol@gmail.org>2006-02-13 10:55:14 +0000
committerMichal Krol <mjkrol@gmail.org>2006-02-13 10:55:14 +0000
commit170f08d4b16e8a24d5a07378582eba542f7e8844 (patch)
tree27c96a8f482f54f20d0f283fbf69cfe1d1b506d5 /src
parent91c30771b63ae3498dbcd880930e6faa975c5928 (diff)
Add _mesa_atanf and _mesa_asinf functions.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/imports.c24
-rw-r--r--src/mesa/main/imports.h8
2 files changed, 30 insertions, 2 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 474b358eb4..a49c711a25 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -33,7 +33,7 @@
* Mesa 3-D graphics library
* Version: 6.5
*
- * Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -308,6 +308,28 @@ _mesa_cos(double a)
#endif
}
+/** Single precision wrapper around either asin() or xf86asin() */
+float
+_mesa_asinf(float x)
+{
+#if defined(XFree86LOADER) && defined(IN_MODULE)
+ return (float) xf86asin((double) x);
+#else
+ return (float) asin((double) x);
+#endif
+}
+
+/** Single precision wrapper around either atan() or xf86atan() */
+float
+_mesa_atanf(float x)
+{
+#if defined(XFree86LOADER) && defined(IN_MODULE)
+ return (float) xf86atan((double) x);
+#else
+ return (float) atan((double) x);
+#endif
+}
+
/** Wrapper around either sqrt() or xf86sqrt() */
double
_mesa_sqrtd(double x)
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index f8c0d7cd63..c698312944 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -2,7 +2,7 @@
* Mesa 3-D graphics library
* Version: 6.5
*
- * Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -632,6 +632,12 @@ _mesa_sin(double a);
extern double
_mesa_cos(double a);
+extern float
+_mesa_asinf(float x);
+
+extern float
+_mesa_atanf(float x);
+
extern double
_mesa_sqrtd(double x);