From 98353b37d1df1ed21be75a55f32a65c67c731eb0 Mon Sep 17 00:00:00 2001 From: WANG Tsu-Han Date: Mon, 15 Jun 2020 17:14:11 +0200 Subject: [PATCH] code cleanup --- .../CODING/nrLDPC_decoder_LYC/nrLDPC_defs.h | 50 ----------- .../nrLDPC_decoder_LYC/nrLDPC_init_mem.h | 87 ------------------- .../CODING/nrLDPC_decoder_LYC/nrLDPC_types.h | 35 -------- 3 files changed, 172 deletions(-) delete mode 100644 openair1/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_defs.h delete mode 100644 openair1/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_init_mem.h delete mode 100644 openair1/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_types.h diff --git a/openair1/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_defs.h b/openair1/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_defs.h deleted file mode 100644 index f90c5d0570..0000000000 --- a/openair1/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_defs.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The OpenAirInterface Software Alliance licenses this file to You under - * the OAI Public License, Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.openairinterface.org/?page_id=698 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - *------------------------------------------------------------------------------- - * For more information about the OpenAirInterface (OAI) Software Alliance: - * contact@openairinterface.org - */ - - /*! \file PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_defs.h - * \brief LDPC cuda support BG1 all length - * \author NCTU OpinConnect Terng-Yin Hsu,WEI-YING,LIN - * \email tyhsu@cs.nctu.edu.tw - * \date 13-05-2020 - * \version - * \note - * \warning - */ - - -/*!\file nrLDPC_defs.h - * \brief Defines all constants and buffers for the LDPC decoder - * \author Sebastian Wagner (TCL Communications) Email: - * \date 27-03-2018 - * \version 1.0 - * \note - * \warning -* */ - -#ifndef __NR_LDPC_DECODER_LYC__NR_LDPC_DEFS__H__ -#define __NR_LDPC_DECODER_LYC__NR_LDPC_DEFS__H__ - -// ============================================================================== -// DEFINES - -/** Maximum lifting size */ - -#endif diff --git a/openair1/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_init_mem.h b/openair1/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_init_mem.h deleted file mode 100644 index 83d0b8700a..0000000000 --- a/openair1/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_init_mem.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The OpenAirInterface Software Alliance licenses this file to You under - * the OAI Public License, Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.openairinterface.org/?page_id=698 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - *------------------------------------------------------------------------------- - * For more information about the OpenAirInterface (OAI) Software Alliance: - * contact@openairinterface.org - */ - -/*!\file nrLDPC_init_mem.h - * \brief Defines the function to initialize the LDPC decoder and sets correct LUTs. - * \author Sebastian Wagner (TCL Communications) Email: - * \date 07-12-2018 - * \version 1.0 - * \note - * \warning - */ - -#ifndef __NR_LDPC_DECODER_LYC__NR_LDPC_INIT_MEM__H__ -#define __NR_LDPC_DECODER_LYC__NR_LDPC_INIT_MEM__H__ - -#include -#include "PHY/CODING/nrLDPC_decoder/nrLDPC_types.h" -#include "PHY/CODING/nrLDPC_decoder/nrLDPCdecoder_defs.h" -#include "PHY/CODING/nrLDPC_decoder/nrLDPC_init_mem.h" - -#ifndef malloc32_clear -/** - \brief Allocates 32 byte aligned memory and initializes to zero - \param size Input size in bytes - \return Pointer to memory -*/ -// static inline void* malloc32_clear(size_t size) -// { - // void* ptr = (void*) memalign(32, size+32); - // memset(ptr, 0, size); - // return ptr; -// } -#endif - -/** - \brief Allocates and initializes the internal decoder processing buffers - \param p_decParams Pointer to decoder parameters - \param p_lut Pointer to decoder LUTs - \return Number of LLR values -*/ -// static inline t_nrLDPC_procBuf* nrLDPC_init_mem(void) -// { - // t_nrLDPC_procBuf* p_procBuf = (t_nrLDPC_procBuf*) malloc32_clear(sizeof(t_nrLDPC_procBuf)); - - // if (p_procBuf) - // { - // p_procBuf->cnProcBuf = (int8_t*) malloc32_clear(NR_LDPC_SIZE_CN_PROC_BUF*sizeof(int8_t)); - // p_procBuf->cnProcBufRes = (int8_t*) malloc32_clear(NR_LDPC_SIZE_CN_PROC_BUF*sizeof(int8_t)); - // p_procBuf->bnProcBuf = (int8_t*) malloc32_clear(NR_LDPC_SIZE_BN_PROC_BUF*sizeof(int8_t)); - // p_procBuf->bnProcBufRes = (int8_t*) malloc32_clear(NR_LDPC_SIZE_BN_PROC_BUF*sizeof(int8_t)); - // p_procBuf->llrRes = (int8_t*) malloc32_clear(NR_LDPC_MAX_NUM_LLR *sizeof(int8_t)); - // p_procBuf->llrProcBuf = (int8_t*) malloc32_clear(NR_LDPC_MAX_NUM_LLR *sizeof(int8_t)); - // } - - // return(p_procBuf); -// } - -// static inline void nrLDPC_free_mem(t_nrLDPC_procBuf* p_procBuf) -// { - // free(p_procBuf->cnProcBuf); - // free(p_procBuf->cnProcBufRes); - // free(p_procBuf->bnProcBuf); - // free(p_procBuf->bnProcBufRes); - // free(p_procBuf->llrRes); - // free(p_procBuf->llrProcBuf); - - // free(p_procBuf); -// } -#endif diff --git a/openair1/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_types.h b/openair1/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_types.h deleted file mode 100644 index 7c3e3ba823..0000000000 --- a/openair1/PHY/CODING/nrLDPC_decoder_LYC/nrLDPC_types.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The OpenAirInterface Software Alliance licenses this file to You under - * the OAI Public License, Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.openairinterface.org/?page_id=698 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - *------------------------------------------------------------------------------- - * For more information about the OpenAirInterface (OAI) Software Alliance: - * contact@openairinterface.org - */ - -/*!\file nrLDPC_types.h - * \brief Defines all types for the LDPC decoder - * \author Sebastian Wagner (TCL Communications) Email: - * \date 27-03-2018 - * \version 1.0 - * \note - * \warning - */ - -#ifndef __NR_LDPC_DECODER_LYC__NR_LDPC_TYPES__H__ -#define __NR_LDPC_DECODER_LYC__NR_LDPC_TYPES__H__ - - -#endif