Fix left shift overflow for MASK_N2

Tento commit je obsažen v:
John M. Schanck 2020-09-09 17:20:11 -04:00 odevzdal Kris Kwiatkowski
rodič 6cf952a2ce
revize 2767acd007
4 změnil soubory, kde provedl 4 přidání a 4 odebrání

Zobrazit soubor

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

Zobrazit soubor

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

Zobrazit soubor

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

Zobrazit soubor

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