1
1
espelhamento de https://github.com/henrydcase/pqc.git sincronizado 2024-11-22 07:35:38 +00:00

Fix left shift overflow for MASK_N2

Esse commit está contido em:
John M. Schanck 2020-09-09 17:20:11 -04:00 commit de Kris Kwiatkowski
commit 2767acd007
4 arquivos alterados com 4 adições e 4 exclusões

Ver arquivo

@ -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

Ver arquivo

@ -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);

Ver arquivo

@ -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

Ver arquivo

@ -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);