AVR-LibC  2.2.0
Standard C library for AVR-GCC
 

AVR-LibC Documentation

Logo

AVR-LibC Development Pages

Main Page

User Manual

Library Reference

FAQ

Example Projects

File List

Loading...
Searching...
No Matches
Functions
<util/parity.h>: Parity bit generation

Functions

static uint8_t parity_even_bit (uint8_t __val)
 

Detailed Description

#include <util/parity.h>

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

Function Documentation

◆ parity_even_bit()

uint8_t parity_even_bit ( uint8_t  val)
inlinestatic
Returns
1 if val has an odd number of bits set, and 0 otherwise.