group util parity


avr-libc: <util/parity.h>: Parity bit generation AVR Libc Home Page AVR Libc Development Pages Main Page User Manual Library Reference FAQ Alphabetical Index Example Projects <util/parity.h>: Parity bit generationDetailed Description #include <util/parity.h> This header file contains optimized assembler code to calculate the parity bit for a byte. Defines #define parity_even_bit(val) Define Documentation #define parity_even_bit ( val   )  Value:(__extension__({ \ unsigned char __t; \ __asm__ ( \ "mov __tmp_reg__,%0" "\n\t" \ "swap %0" "\n\t" \ "eor %0,__tmp_reg__" "\n\t" \ "mov __tmp_reg__,%0" "\n\t" \ "lsr %0" "\n\t" \ "lsr %0" "\n\t" \ "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. Automatically generated by Doxygen 1.5.6 on 4 Dec 2008.

Wyszukiwarka

Podobne podstrony:
group util ?lay
group util crc
group util twi
group util twi
group util setbaud
group util atomic
group util ?lay ?sic
Util js
Superficial Fascia in the Hip Adductor Muscle Group tapeSP
group avr errno
group corr
group matrix sub
TSM UTIL
user group howto pl 3
Group Specifications
group group math
group convolution example

więcej podobnych podstron