search for: spx_wordxx_t

Displaying 1 result from an estimated 1 matches for "spx_wordxx_t".

Did you mean: spx_word16_t
2005 Sep 17
1
Unifying fixed point and floating point
I've been browsing around the speex-1.10 source tree. Firstly I see 'float' is still used in many places. Can't we change them all to the appropriate type (spx_wordxx_t or similar) defined in arch.h ? Secondly I see there is a lot of duplication regarding real-valued constants. One way would be to say: #ifndef FIXED_POINT #define CONSTANT(x) (x) #else #define CONSTANT(x) ((int)((x)*16384.0 + 0.5)) #endif and then use the macro appropriately. This would assume th...