diff options
author | Zentaro Kavanagh <illiminable@xiph.org> | 2006-04-21 18:32:44 +0000 |
---|---|---|
committer | Zentaro Kavanagh <illiminable@xiph.org> | 2006-04-21 18:32:44 +0000 |
commit | 33d07d9f01d19eadaa3ccc3255e64f8818457e52 (patch) | |
tree | d516ed80bb10bfde333ce6b70533aac9deb41d8b /floor0.c | |
parent | 99ef5101f31f961c1cdf8f5133133bacf21f7e79 (diff) | |
download | tremor-33d07d9f01d19eadaa3ccc3255e64f8818457e52.tar.gz |
* Use the provided STIN macros so it builds on win32
* Add VS2005 project files
git-svn-id: https://svn.xiph.org/trunk/Tremor@11211 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'floor0.c')
-rw-r--r-- | floor0.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -48,7 +48,7 @@ typedef struct { returns in m.8 format */ static long ADJUST_SQRT2[2]={8192,5792}; -static inline ogg_int32_t vorbis_invsqlook_i(long a,long e){ +STIN ogg_int32_t vorbis_invsqlook_i(long a,long e){ long i=(a&0x7fff)>>(INVSQ_LOOKUP_I_SHIFT-1); long d=a&INVSQ_LOOKUP_I_MASK; /* 0.10 */ long val=INVSQ_LOOKUP_I[i]- /* 1.16 */ @@ -60,7 +60,7 @@ static inline ogg_int32_t vorbis_invsqlook_i(long a,long e){ /* interpolated lookup based fromdB function, domain -140dB to 0dB only */ /* a is in n.12 format */ -static inline ogg_int32_t vorbis_fromdBlook_i(long a){ +STIN ogg_int32_t vorbis_fromdBlook_i(long a){ int i=(-a)>>(12-FROMdB2_SHIFT); if(i<0) return 0x7fffffff; if(i>=(FROMdB_LOOKUP_SZ<<FROMdB_SHIFT))return 0; @@ -70,7 +70,7 @@ static inline ogg_int32_t vorbis_fromdBlook_i(long a){ /* interpolated lookup based cos function, domain 0 to PI only */ /* a is in 0.16 format, where 0==0, 2^^16-1==PI, return 0.14 */ -static inline ogg_int32_t vorbis_coslook_i(long a){ +STIN ogg_int32_t vorbis_coslook_i(long a){ int i=a>>COS_LOOKUP_I_SHIFT; int d=a&COS_LOOKUP_I_MASK; return COS_LOOKUP_I[i]- ((d*(COS_LOOKUP_I[i]-COS_LOOKUP_I[i+1]))>> @@ -79,7 +79,7 @@ static inline ogg_int32_t vorbis_coslook_i(long a){ /* interpolated lookup based cos function */ /* a is in 0.16 format, where 0==0, 2^^16==PI, return .LSP_FRACBITS */ -static inline ogg_int32_t vorbis_coslook2_i(long a){ +STIN ogg_int32_t vorbis_coslook2_i(long a){ a=a&0x1ffff; if(a>0x10000)a=0x20000-a; @@ -102,7 +102,7 @@ static const int barklook[28]={ }; /* used in init only; interpolate the long way */ -static inline ogg_int32_t toBARK(int n){ +STIN ogg_int32_t toBARK(int n){ int i; for(i=0;i<27;i++) if(n>=barklook[i] && n<barklook[i+1])break; |