From 386b0b74b0133acb7caddc0f31f5ebbf255efc00 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 10 Nov 2009 01:47:02 +0000 Subject: split out d_math.c into standalone objects svn path=/trunk/; revision=12736 --- externals/vanilla/d_math.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 externals/vanilla/d_math.h (limited to 'externals/vanilla/d_math.h') diff --git a/externals/vanilla/d_math.h b/externals/vanilla/d_math.h new file mode 100644 index 00000000..5ef0f0e3 --- /dev/null +++ b/externals/vanilla/d_math.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 d_math.c */ + +#include "m_pd.h" + +#define LOGTEN 2.302585092994 +#define DUMTAB1SIZE 256 +#define DUMTAB2SIZE 1024 + +#ifdef _WIN32 +#define int32 long +#else +#include +#define int32 int32_t +#endif + +t_float q8_sqrt(t_float f); +t_float q8_rsqrt(t_float f); -- cgit v1.2.1