Ubuntu Manpages

util_parity

<util/parity.h>: Parity bit generation


static uint8_t parity_even_bit (uint8_t __val)

#include <util/parity.h> 

This header file contains optimized assembler code to calculate the parity bit for a byte.

uint8_t parity_even_bit (uint8_t val) [inline], [static]

Returns

1 if val has an odd number of bits set, and 0 otherwise.

Generated automatically by Doxygen for AVR-LibC from the source code.