aboutsummaryrefslogtreecommitdiff
path: root/externals/vanilla/d_math.h
blob: 5ef0f0e31cf18224ec0a45eeb0cc6bde0415e0f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 <stdint.h>
#define int32 int32_t
#endif

t_float q8_sqrt(t_float f);
t_float q8_rsqrt(t_float f);