Provided by: avr-libc_2.0.0+Atmel3.6.0-1_all bug

NAME

       util_parity

SYNOPSIS

   Macros
       #define parity_even_bit(val)

Detailed Description

       #include <util/parity.h>

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

Macro Definition Documentation

   #define parity_even_bit(val)
       Value:

       (__extension__({                        unsigned char __t;                  __asm__ (                           "mov __tmp_reg__,%0" ""             "swap %0" ""                    "eor %0,__tmp_reg__" ""             "mov __tmp_reg__,%0" ""             "lsr %0" ""                     "lsr %0" ""                     "eor %0,__tmp_reg__"                    : "=r" (__t)                        : "0" ((unsigned char)(val))                : "r0"                      );                          (((__t + 1) >> 1) & 1);              }))

       Returns:
           1 if val has an odd number of bits set.

Author

       Generated automatically by Doxygen for avr-libc from the source code.