summaryrefslogtreecommitdiffstats
path: root/mufhd0/fixsin.h
blob: 8c65184386cfd4df50292603178c43e87e1b249c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef FIXSIN_H
#define FIXSIN_H

/*
  16.16 fixed-point sine lookup tables...
  author:  Scott Scriven (scriven@vis.colostate.edu)
*/

#define FSINMAX 2047
#define SINFIX 16
#define FSINBITS 16


#include <math.h>


extern int FSinTab[2048];
extern int FCosTab[2048];

extern int FSin(int angle);
extern int FCos(int angle);

extern void FCreateSines();





#endif