mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 23:48:58 +00:00
Fix left shift overflow for MASK_N2
This commit is contained in:
parent
b3a651aebe
commit
859522e1c4
@ -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
|
* @brief Decoding the code words to a message using the repetition code
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
* @brief Implementation of repetition codes
|
* @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);
|
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
|
* @brief Decoding the code words to a message using the repetition code
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
* @brief Implementation of repetition codes
|
* @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);
|
static inline int32_t popcount(uint64_t n);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user