this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #22 from detly/master

Include stdint.h only where fixed point types are used. Use min/max v…

authored by

mborgerding and committed by
GitHub
36dbc057 a75f0848

+7 -7
+6 -6
_kiss_fft_guts.h
··· 12 12 typedef struct { kiss_fft_scalar r; kiss_fft_scalar i; }kiss_fft_cpx; */ 13 13 #include "kiss_fft.h" 14 14 #include <limits.h> 15 - #include <stdint.h> 16 15 17 16 #define MAXFACTORS 32 18 17 /* e.g. an fft of length 128 has 4 factors ··· 37 36 C_ADDTO( res , a) : res += a 38 37 * */ 39 38 #ifdef FIXED_POINT 39 + #include <stdint.h> 40 40 #if (FIXED_POINT==32) 41 41 # define FRACBITS 31 42 42 # define SAMPPROD int64_t 43 - #define SAMP_MAX 2147483647 43 + #define SAMP_MAX INT32_MAX 44 + #define SAMP_MIN INT32_MIN 44 45 #else 45 46 # define FRACBITS 15 46 - # define SAMPPROD int32_t 47 - #define SAMP_MAX 32767 47 + # define SAMPPROD int32_t 48 + #define SAMP_MAX INT16_MAX 49 + #define SAMP_MIN INT16_MIN 48 50 #endif 49 - 50 - #define SAMP_MIN -SAMP_MAX 51 51 52 52 #if defined(CHECK_OVERFLOW) 53 53 # define CHECK_OVERFLOW_OP(a,op,b) \
+1 -1
kiss_fft.h
··· 43 43 44 44 45 45 #ifdef FIXED_POINT 46 - #include <sys/types.h> 46 + #include <stdint.h> 47 47 # if (FIXED_POINT == 32) 48 48 # define kiss_fft_scalar int32_t 49 49 # else