byte_swap.h File Reference

Go to the source code of this file.

Defines

#define __byte_swap_long_variable(x)
#define __byte_swap_word_variable(x)
#define __byte_swap_long_constant(x)
#define __byte_swap_word_constant(x)
#define __byte_swap_long(x)
#define __byte_swap_word(x)


Define Documentation

#define __byte_swap_long  ) 
 

Value:

(__builtin_constant_p((x)) ? \
         __byte_swap_long_constant(x) : __byte_swap_long_variable(x))

#define __byte_swap_long_constant  ) 
 

Value:

((((x) & 0xff000000) >> 24) | \
         (((x) & 0x00ff0000) >>  8) | \
         (((x) & 0x0000ff00) <<  8) | \
         (((x) & 0x000000ff) << 24))

#define __byte_swap_long_variable  ) 
 

Value:

__extension__ \
({ register in_addr_t __x = (x); \
   __asm ("rorw $8, %w1\n\trorl $16, %1\n\trorw $8, %w1" \
        : "=r" (__x) \
        : "0" (__x)); \
   __x; })

#define __byte_swap_word  ) 
 

Value:

(__builtin_constant_p((x)) ? \
         __byte_swap_word_constant(x) : __byte_swap_word_variable(x))

#define __byte_swap_word_constant  ) 
 

Value:

((((x) & 0xff00) >> 8) | \
         (((x) & 0x00ff) << 8))

#define __byte_swap_word_variable  ) 
 

Value:

__extension__ \
({ register in_port_t __x = (x); \
   __asm ("rorw $8, %w1" \
        : "=r" (__x) \
        : "0" (__x)); \
   __x; })


Generated on Wed May 24 23:05:55 2006 for LSE/OS by  doxygen 1.4.6