~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/cris/include/arch-v32/arch/swab.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
8
static 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
 
 
16
static 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 */