aboutsummaryrefslogtreecommitdiff
path: root/externals/vanilla/e_sqrt.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-11-10 20:59:05 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-11-10 20:59:05 +0000
commit33b135d7fc381a22965586e0567ede4da11eade3 (patch)
treefd798bef475c1ab6d92b4f888168524c77998141 /externals/vanilla/e_sqrt.h
parentef93be430a3794eea061d6494205739c218898c0 (diff)
use renamed header d_math.h -> e_sqrt.h
svn path=/trunk/; revision=12748
Diffstat (limited to 'externals/vanilla/e_sqrt.h')
-rw-r--r--externals/vanilla/e_sqrt.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/externals/vanilla/e_sqrt.h b/externals/vanilla/e_sqrt.h
new file mode 100644
index 00000000..29f9725c
--- /dev/null
+++ b/externals/vanilla/e_sqrt.h
@@ -0,0 +1,21 @@
+/* Copyright (c) 1997-2001 Miller Puckette and others.
+* For information on usage and redistribution, and for a DISCLAIMER OF ALL
+* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
+
+/* these are things used in a number of objectclasses from e_sqrt.c */
+
+#include "m_pd.h"
+
+#define LOGTEN 2.302585092994
+#define DUMTAB1SIZE 256
+#define DUMTAB2SIZE 1024
+
+#ifdef _WIN32
+#define int32 long
+#else
+#include <stdint.h>
+#define int32 int32_t
+#endif
+
+t_float q8_sqrt(t_float f);
+t_float q8_rsqrt(t_float f);