Fix left shift overflow for MASK_N2
这个提交包含在:
父节点
6cf952a2ce
当前提交
2767acd007
@ -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);
|
||||
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户