From 576d468809c331d7878201f53c2d22f41b2ebc1f Mon Sep 17 00:00:00 2001 From: Laurent THOMAS Date: Tue, 29 Oct 2024 18:54:16 +0100 Subject: [PATCH] Clean up intermediate DFT macros, remove non-existing DFTs DFT for 9216 and 73728 don't exist and/or assert, so remove them from the list. --- openair1/PHY/TOOLS/dfts_load.c | 6 +- openair1/PHY/TOOLS/oai_dfts.c | 37 +---- openair1/PHY/TOOLS/oai_dfts_neon.c | 36 +---- openair1/PHY/TOOLS/tools_defs.h | 218 +++++++++++++---------------- 4 files changed, 117 insertions(+), 180 deletions(-) diff --git a/openair1/PHY/TOOLS/dfts_load.c b/openair1/PHY/TOOLS/dfts_load.c index ec8869b54f..2e4ddb595f 100644 --- a/openair1/PHY/TOOLS/dfts_load.c +++ b/openair1/PHY/TOOLS/dfts_load.c @@ -44,6 +44,8 @@ /* function description array, to be used when loading the dfts/idfts lib */ static loader_shlibfunc_t shlib_fdesc[2]; static char *arg[64] = {"phytest", "-O", "cmdlineonly::dbgl0"}; +dftfunc_t dft; +idftfunc_t idft; int load_dftslib(void) { char *ptr = (char *)config_get_if(); @@ -51,8 +53,8 @@ int load_dftslib(void) uniqCfg = load_configmodule(3, (char **)arg, CONFIG_ENABLECMDLINEONLY); logInit(); } - shlib_fdesc[0].fname = "dft"; - shlib_fdesc[1].fname = "idft"; + shlib_fdesc[0].fname = "dft_implementation"; + shlib_fdesc[1].fname = "idft_implementation"; int ret = load_module_shlib("dfts", shlib_fdesc, sizeof(shlib_fdesc) / sizeof(loader_shlibfunc_t), NULL); AssertFatal((ret >= 0), "Error loading dftsc decoder"); dft = (dftfunc_t)shlib_fdesc[0].fptr; diff --git a/openair1/PHY/TOOLS/oai_dfts.c b/openair1/PHY/TOOLS/oai_dfts.c index da5d973d37..dcb206b5a4 100644 --- a/openair1/PHY/TOOLS/oai_dfts.c +++ b/openair1/PHY/TOOLS/oai_dfts.c @@ -3594,19 +3594,6 @@ void dft6144(int16_t *input, int16_t *output,unsigned char scale) simde_m_empty(); } -int16_t twa9216[6144] __attribute__((aligned(32))); -int16_t twb9216[6144] __attribute__((aligned(32))); -// 3072 x 3 -void dft9216(int16_t *input, int16_t *output,uint8_t scale) { - - AssertFatal(1==0,"Need to do this ..\n"); -} - -void idft9216(int16_t *input, int16_t *output,uint8_t scale) { - - AssertFatal(1==0,"Need to do this ..\n"); -} - int16_t twa12288[8192] __attribute__((aligned(32))); int16_t twb12288[8192] __attribute__((aligned(32))); // 4096 x 3 @@ -4233,20 +4220,6 @@ void idft65536(int16_t *x,int16_t *y,unsigned char scale) simde_m_empty(); } -int16_t twa73728[49152] __attribute__((aligned(32))); -int16_t twb73728[49152] __attribute__((aligned(32))); -// 24576 x 3 -void dft73728(int16_t *input, int16_t *output,uint8_t scale) { - - AssertFatal(1==0,"Need to do this ..\n"); -} - -void idft73728(int16_t *input, int16_t *output,uint8_t scale) { - - AssertFatal(1==0,"Need to do this ..\n"); -} - - int16_t twa98304[65536] __attribute__((aligned(32))); int16_t twb98304[65536] __attribute__((aligned(32))); // 32768 x 3 @@ -7905,8 +7878,9 @@ int dfts_autoinit(void) #ifndef MR_MAIN -void dft(uint8_t sizeidx, int16_t *input,int16_t *output,unsigned char scale_flag){ - AssertFatal((sizeidx >= 0 && sizeidx= 0 && sizeidx=0 && sizeidx=0 && sizeidx= 0 && sizeidx= 0 && sizeidx=0 && sizeidx=0 && sizeidx