1 #ifndef _BITS_BYTESWAP_H 2 #define _BITS_BYTESWAP_H 16 __asm__ (
"xchgb %b0,%h0" :
"=q" ( x ) :
"0" ( x ) );
22 __asm__ (
"rorw $8, %0" :
"+m" ( *x ) );
27 __asm__ (
"bswapl %0" :
"=r" ( x ) :
"0" ( x ) );
33 __asm__ (
"bswapl %0" :
"=r" ( *x ) :
"0" ( *x ) );
39 uint32_t in_low = ( x & 0xffffffffUL );
46 :
"=r" ( out_high ),
"=r" ( out_low )
47 :
"0" ( in_high ),
"1" ( in_low ) );
49 return ( ( ( (
uint64_t ) out_high ) << 32 ) |
66 :
"+m" ( dwords->low ),
"+m" ( dwords->high ),
uint32_t low
Low 16 bits of address.
unsigned long long uint64_t
uint32_t high
High 32 bits of address.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
__asm__(".section \".rodata\", \"a\", " PROGBITS "\n\t" "\nprivate_key_data:\n\t" ".size private_key_data, ( . - private_key_data )\n\t" ".equ private_key_len, ( . - private_key_data )\n\t" ".previous\n\t")
static __attribute__((always_inline, const)) uint16_t __bswap_variable_16(uint16_t x)