Fix left shift overflow for MASK_N2

This commit is contained in:
John M. Schanck 2020-09-09 17:20:11 -04:00 committed by Kris Kwiatkowski
父節點 6cf952a2ce
當前提交 2767acd007
共有 4 個文件被更改,包括 4 次插入4 次删除

查看文件

@ -10,7 +10,7 @@
*/
#define MASK_N2 ((1UL << PARAM_N2) - 1)
#define MASK_N2 ((((uint64_t) 1) << PARAM_N2) - 1)
/**
* @brief Decoding the code words to a message using the repetition code

查看文件

@ -8,7 +8,7 @@
* @brief Implementation of repetition codes
*/
#define MASK_N2 ((1UL << PARAM_N2) - 1)
#define MASK_N2 ((((uint64_t) 1) << PARAM_N2) - 1)
static inline int32_t popcount(uint64_t n);

查看文件

@ -10,7 +10,7 @@
*/
#define MASK_N2 ((1UL << PARAM_N2) - 1)
#define MASK_N2 ((((uint64_t) 1) << PARAM_N2) - 1)
/**
* @brief Decoding the code words to a message using the repetition code

查看文件

@ -8,7 +8,7 @@
* @brief Implementation of repetition codes
*/
#define MASK_N2 ((1UL << PARAM_N2) - 1)
#define MASK_N2 ((((uint64_t) 1) << PARAM_N2) - 1)
static inline int32_t popcount(uint64_t n);