diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-04-09 07:06:08 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-04-09 07:06:08 +0000 |
commit | e58d19666ee71630cbc267928b4f9cac1fa09580 (patch) | |
tree | aa496409ed53905d577503117b3cf7a94598e461 /third_party/resample/src/stddefs.h | |
parent | cf6e8a6e1d79d98378427ee60dfa099808517732 (diff) |
Fixed all VS6 and VS8 projects with new third party projects layout
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/split-3rd-party@1177 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/resample/src/stddefs.h')
-rw-r--r-- | third_party/resample/src/stddefs.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/third_party/resample/src/stddefs.h b/third_party/resample/src/stddefs.h new file mode 100644 index 00000000..83497705 --- /dev/null +++ b/third_party/resample/src/stddefs.h @@ -0,0 +1,29 @@ +#ifndef PI +#define PI (3.14159265358979232846) +#endif + +#ifndef PI2 +#define PI2 (6.28318530717958465692) +#endif + +#define D2R (0.01745329348) /* (2*pi)/360 */ +#define R2D (57.29577951) /* 360/(2*pi) */ + +#ifndef MAX +#define MAX(x,y) ((x)>(y) ?(x):(y)) +#endif +#ifndef MIN +#define MIN(x,y) ((x)<(y) ?(x):(y)) +#endif + +#ifndef ABS +#define ABS(x) ((x)<0 ?(-(x)):(x)) +#endif + +#ifndef SGN +#define SGN(x) ((x)<0 ?(-1):((x)==0?(0):(1))) +#endif + +#define MAX_HWORD (32767) +#define MIN_HWORD (-32768) + |