Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86607
b: refs/heads/master
c: 94a3f78
h: refs/heads/master
i:
  86605: b294e38
  86603: 396db40
  86599: 2e37dab
  86591: e5e1964
v: v3
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Feb 29, 2008
1 parent ea4c5d6 commit 6af230f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: b98d7291883f7ed27e3f4b59bc12dc963c9f72a6
refs/heads/master: 94a3f78566ef98a48814d82892f28bb741624cb8
8 changes: 4 additions & 4 deletions trunk/include/asm-arm/unaligned.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ extern int __bug_unaligned_x(const void *ptr);
*/

#define __get_unaligned_2_le(__p) \
(__p[0] | __p[1] << 8)
(unsigned int)(__p[0] | __p[1] << 8)

#define __get_unaligned_2_be(__p) \
(__p[0] << 8 | __p[1])
(unsigned int)(__p[0] << 8 | __p[1])

#define __get_unaligned_4_le(__p) \
(__p[0] | __p[1] << 8 | __p[2] << 16 | __p[3] << 24)
(unsigned int)(__p[0] | __p[1] << 8 | __p[2] << 16 | __p[3] << 24)

#define __get_unaligned_4_be(__p) \
(__p[0] << 24 | __p[1] << 16 | __p[2] << 8 | __p[3])
(unsigned int)(__p[0] << 24 | __p[1] << 16 | __p[2] << 8 | __p[3])

#define __get_unaligned_8_le(__p) \
((unsigned long long)__get_unaligned_4_le((__p+4)) << 32 | \
Expand Down

0 comments on commit 6af230f

Please sign in to comment.