/* * 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 ldpc_encode_parity_check.c * \brief Parity check function used by ldpc encoders * \author Florian Kaltenberger, Raymond Knopp, Kien le Trung (Eurecom) * \email openair_tech@eurecom.fr * \date 27-03-2018 * \version 1.0 * \note * \warning */ #include #include #include #include #include "assertions.h" #include "common/utils/LOG/log.h" #include "ldpc384_byte.c" #include "ldpc352_byte.c" #include "ldpc320_byte.c" #include "ldpc288_byte.c" #include "ldpc256_byte.c" #include "ldpc240_byte.c" #include "ldpc224_byte.c" #include "ldpc208_byte.c" #include "ldpc192_byte.c" #include "ldpc176_byte.c" #include "ldpc_BG2_Zc384_byte.c" #include "ldpc_BG2_Zc352_byte.c" #include "ldpc_BG2_Zc320_byte.c" #include "ldpc_BG2_Zc288_byte.c" #include "ldpc_BG2_Zc256_byte.c" #include "ldpc_BG2_Zc240_byte.c" #include "ldpc_BG2_Zc224_byte.c" #include "ldpc_BG2_Zc208_byte.c" #include "ldpc_BG2_Zc192_byte.c" #include "ldpc_BG2_Zc176_byte.c" #include "ldpc_BG2_Zc160_byte.c" #include "ldpc_BG2_Zc144_byte.c" #include "ldpc_BG2_Zc128_byte.c" #include "ldpc_BG2_Zc120_byte.c" #include "ldpc_BG2_Zc112_byte.c" #include "ldpc_BG2_Zc104_byte.c" #include "ldpc_BG2_Zc96_byte.c" #include "ldpc_BG2_Zc88_byte.c" #include "ldpc_BG2_Zc80_byte.c" #include "ldpc_BG2_Zc72_byte.c" static void encode_parity_check_part_optim(uint8_t *cc,uint8_t *d, short BG,short Zc,short Kb, int simd_size, int ncols) { unsigned char c[2*22*Zc*simd_size] __attribute__((aligned(32))); //double size matrix of c for (int i1=0; i1 < ncols; i1++) { memcpy(&c[2*i1*Zc], &cc[i1*Zc], Zc*sizeof(unsigned char)); memcpy(&c[(2*i1+1)*Zc], &cc[i1*Zc], Zc*sizeof(unsigned char)); } for (int i1=1;i1