Commit 564eee7b authored by frtabu's avatar frtabu

--amend

parent bd33606b
...@@ -1419,10 +1419,9 @@ set(KISSFFT_DIR ${OPENAIR_DIR}/kiss_fft130) ...@@ -1419,10 +1419,9 @@ set(KISSFFT_DIR ${OPENAIR_DIR}/kiss_fft130)
add_library(dfts_fpkiss MODULE ${OPENAIR1_DIR}/PHY/TOOLS/oai_kissdfts.c ${OPENAIR1_DIR}/PHY/TOOLS/oai_dfts_tmp.c ${KISSFFT_DIR}/kiss_fft.c) add_library(dfts_fpkiss MODULE ${OPENAIR1_DIR}/PHY/TOOLS/oai_kissdfts.c ${OPENAIR1_DIR}/PHY/TOOLS/oai_dfts_tmp.c ${KISSFFT_DIR}/kiss_fft.c)
target_compile_definitions(dfts_fpkiss PUBLIC -DFIXED_POINT=16 ) target_compile_definitions(dfts_fpkiss PUBLIC -DFIXED_POINT=16 )
target_compile_options(dfts_fpkiss PUBLIC -O3 -mtune=native -ffast-math -fomit-frame-pointer -dA -fverbose-asm -ftree-vectorizer-verbose=6 -fopt-info-vec-missed) target_compile_options(dfts_fpkiss PUBLIC -O3 -march=native -ffast-math -fomit-frame-pointer -fopt-info-loop-optimized )
add_library(dfts_flkiss MODULE ${OPENAIR1_DIR}/PHY/TOOLS/oai_kissdfts.c ${OPENAIR1_DIR}/PHY/TOOLS/oai_dfts_tmp.c ${KISSFFT_DIR}/kiss_fft.c) add_library(dfts_flkiss MODULE ${OPENAIR1_DIR}/PHY/TOOLS/oai_kissdfts.c ${OPENAIR1_DIR}/PHY/TOOLS/oai_dfts_tmp.c ${KISSFFT_DIR}/kiss_fft.c)
target_compile_definitions(dfts_fpkiss PUBLIC ) target_compile_options(dfts_flkiss PUBLIC -O3 -march=native -ffast-math -fomit-frame-pointer -ftree-vectorizer-verbose=2 -fopt-info-vec-missed)
target_compile_options(dfts_fpkiss PUBLIC -O3 -mtune=native -ffast-math -fomit-frame-pointer -dA -fverbose-asm -ftree-vectorizer-verbose=6 -fopt-info-vec-missed)
set(PHY_SRC_COMMON set(PHY_SRC_COMMON
${OPENAIR1_DIR}/PHY/LTE_TRANSPORT/dci_tools_common.c ${OPENAIR1_DIR}/PHY/LTE_TRANSPORT/dci_tools_common.c
......
...@@ -60,10 +60,8 @@ int dfts_autoinit(void) ...@@ -60,10 +60,8 @@ int dfts_autoinit(void)
for (int i=0; i<IDFT_SIZE_IDXTABLESIZE ; i++) { for (int i=0; i<IDFT_SIZE_IDXTABLESIZE ; i++) {
ifftcfg[i]=kiss_fft_alloc(ifftsizes[i],1,NULL,NULL); ifftcfg[i]=kiss_fft_alloc(ifftsizes[i],1,NULL,NULL);
} }
#ifdef FIXED_POINT
tmpbuff=malloc(98304*2*sizeof(int16_t)); tmpbuff=malloc(98304*2*sizeof(int16_t));
olddfts_autoinit(); olddfts_autoinit();
#endif
return 0; return 0;
} }
...@@ -88,9 +86,10 @@ void convert_floattoshort(int size,float *input,short *output,int factor){ ...@@ -88,9 +86,10 @@ void convert_floattoshort(int size,float *input,short *output,int factor){
void rescale_up_int16buff(int size,int16_t *input, int factor){ void rescale_up_int16buff(int size,int16_t *input, int factor){
for (int i=0;i<(size*2);i=i+1){ for (int i=0;i<(size*2);i=i+1){
input[i]=(input[i]*factor); input[i]=(input[i]*factor);
} }
} }
void rescale_up_newint16buff(int size,int16_t *input, int16_t *output,int factor){ void rescale_up_newint16buff(int size,int16_t *input, int16_t *output,int factor){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment