linux/arch/cris/include/arch-v32/arch/swab.h
<<
>>
Prefs
   1#ifndef _ASM_CRIS_ARCH_SWAB_H
   2#define _ASM_CRIS_ARCH_SWAB_H
   3
   4#include <asm/types.h>
   5
   6#define __SWAB_64_THRU_32__
   7
   8static inline __const__ __u32
   9__arch_swab32(__u32 x)
  10{
  11        __asm__ __volatile__ ("swapwb %0" : "=r" (x) : "0" (x));
  12        return (x);
  13}
  14#define __arch_swab32 __arch_swab32
  15
  16static inline __const__ __u16
  17__arch_swab16(__u16 x)
  18{
  19        __asm__ __volatile__ ("swapb %0" : "=r" (x) : "0" (x));
  20        return (x);
  21}
  22#define __arch_swab16 __arch_swab16
  23
  24#endif /* _ASM_CRIS_ARCH_SWAB_H */
  25