view peluce/pwpdemo.h @ 50:e2b6a35bcb0c

Remove usage of malloc.h; Other misc cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 24 May 2010 08:48:18 +0300
parents acb5694e93d9
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))