Mercurial > hg > vamp-plugin-sdk
comparison src/vamp-sdk/FFTimpl.cpp @ 340:ab8e761f3ee9
Win32 build fixes
author | Chris Cannam <chris.cannam@eecs.qmul.ac.uk> |
---|---|
date | Thu, 12 Jul 2012 14:56:22 +0100 |
parents | d5c5a52e6c9f |
children | b409560a805b |
comparison
equal
deleted
inserted
replaced
339:4256f0bb1549 | 340:ab8e761f3ee9 |
---|---|
25 bits = i; | 25 bits = i; |
26 break; | 26 break; |
27 } | 27 } |
28 } | 28 } |
29 | 29 |
30 #ifdef _MSC_VER | |
31 int *table = (int *)_malloca(n * sizeof(int)); | |
32 #else | |
30 int table[n]; | 33 int table[n]; |
34 #endif | |
31 | 35 |
32 for (i = 0; i < n; ++i) { | 36 for (i = 0; i < n; ++i) { |
33 m = i; | 37 m = i; |
34 for (j = k = 0; j < bits; ++j) { | 38 for (j = k = 0; j < bits; ++j) { |
35 k = (k << 1) | (m & 1); | 39 k = (k << 1) | (m & 1); |
102 for (i = 0; i < n; i++) { | 106 for (i = 0; i < n; i++) { |
103 ro[i] /= denom; | 107 ro[i] /= denom; |
104 io[i] /= denom; | 108 io[i] /= denom; |
105 } | 109 } |
106 } | 110 } |
111 | |
112 #ifdef _MSC_VER | |
113 _freea(table); | |
114 #endif | |
107 } | 115 } |
108 | 116 |