Mercurial > hg > forks > pwpunix
view peluce/pwpdemo.h @ 51:53676367d46f
Hack Final Isi to "work", kind of. Requires a nasty hack in pwplib to actually run (without it, it quits abruptly .. not yet sure why.)
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 24 May 2010 11:48:48 +0300 |
parents | e2b6a35bcb0c |
children | c6ecac58120a |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "../pwplib/pwplib.h" #define SIN(a) (sin((a)*3.1415926/128)*32767) #define COS(a) ((3.1415926/2)+(cos((a)*3.1415926/128))*32767) #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b))