mirror of https://github.com/drowe67/LPCNet.git
Warn is no vectorization available and change uint to unsigned in in idct.c
parent
e2c1f8fe08
commit
228a9d4ecc
|
|
@ -48,8 +48,12 @@ target_link_libraries(dump_data lpcnetfreedv m codec2)
|
|||
add_executable(test_lpcnet test_lpcnet.c)
|
||||
target_link_libraries(test_lpcnet lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(test_vec test_vec.c)
|
||||
target_link_libraries(test_vec m)
|
||||
if(AVX OR AVX2)
|
||||
add_executable(test_vec test_vec.c)
|
||||
target_link_libraries(test_vec m)
|
||||
else()
|
||||
message(WARNING "No AVX/AVX2 CPU flags identified, not building test_vec.")
|
||||
endif()
|
||||
|
||||
add_executable(quant_feat quant_feat.c)
|
||||
target_link_libraries(quant_feat lpcnetfreedv m codec2)
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ float std[] = {
|
|||
int main(int argc, char *argv[]) {
|
||||
FILE *fin, *fout;
|
||||
fin = stdin; fout = stdout;
|
||||
uint ret;
|
||||
uint stride = NB_BANDS;
|
||||
unsigned int ret;
|
||||
unsigned int stride = NB_BANDS;
|
||||
int measure = 0;
|
||||
int scaling = 0;
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ int main(int argc, char *argv[]) {
|
|||
float sum[NB_BANDS] = {0.0};
|
||||
float sumsq[NB_BANDS] = {0.0};
|
||||
float dctLy[stride], Ly[stride];
|
||||
uint i; for(i=0; i<stride; i++) Ly[stride] = 0.0;
|
||||
unsigned int i; for(i=0; i<stride; i++) Ly[stride] = 0.0;
|
||||
long n = 0;
|
||||
while(fread(dctLy, sizeof(float), stride, fin) == stride) {
|
||||
idct(Ly, dctLy);
|
||||
|
|
|
|||
Loading…
Reference in New Issue