Teensy 4.1 core updated for C++20
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

14 行
262B

  1. #ifndef _UTIL_PARITY_H_
  2. #define _UTIL_PARITY_H_
  3. static inline uint8_t parity_even_bit(uint8_t x) __attribute__((pure, always_inline, unused));
  4. static inline uint8_t parity_even_bit(uint8_t x)
  5. {
  6. x ^= x >> 1;
  7. x ^= x >> 2;
  8. x ^= x >> 4;
  9. return x & 1;
  10. }
  11. #endif