Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146770
b: refs/heads/master
c: 567bb8f
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed May 10, 2009
1 parent 9e17a88 commit d6e9c6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 457daa2b66e07bbd2280b9f8d2b03e800f357243
refs/heads/master: 567bb8fd47624cb9f894c64ce9530d43d5862a71
12 changes: 6 additions & 6 deletions trunk/arch/sh/include/asm/swab.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
{
__asm__(
#ifdef __SH5__
"byterev %0, %0\n\t"
"byterev %1, %0\n\t"
"shari %0, 32, %0"
#else
"swap.b %0, %0\n\t"
"swap.b %1, %0\n\t"
"swap.w %0, %0\n\t"
"swap.b %0, %0"
#endif
: "=r" (x)
: "0" (x));
: "r" (x));

return x;
}
Expand All @@ -32,13 +32,13 @@ static inline __attribute_const__ __u16 __arch_swab16(__u16 x)
{
__asm__(
#ifdef __SH5__
"byterev %0, %0\n\t"
"byterev %1, %0\n\t"
"shari %0, 32, %0"
#else
"swap.b %0, %0"
"swap.b %1, %0"
#endif
: "=r" (x)
: "0" (x));
: "r" (x));

return x;
}
Expand Down

0 comments on commit d6e9c6a

Please sign in to comment.