-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 281158 b: refs/heads/master c: ccc7340 h: refs/heads/master v: v3
- Loading branch information
Mathieu Desnoyers
authored and
Greg Kroah-Hartman
committed
Nov 29, 2011
1 parent
d7d4ec8
commit eb3a99a
Showing
7 changed files
with
1,752 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 6857797120e99facc465a972026038199e4c2356 | ||
refs/heads/master: ccc7340a9415839763e872bceb626638c58174a1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#ifndef _LTT_ENDIAN_H | ||
#define _LTT_ENDIAN_H | ||
|
||
/* | ||
* ltt-endian.h | ||
* | ||
* Copyright 2010 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | ||
* | ||
* Dual LGPL v2.1/GPL v2 license. | ||
*/ | ||
|
||
#ifdef __KERNEL__ | ||
# include <asm/byteorder.h> | ||
# ifdef __BIG_ENDIAN | ||
# define __BYTE_ORDER __BIG_ENDIAN | ||
# elif defined(__LITTLE_ENDIAN) | ||
# define __BYTE_ORDER __LITTLE_ENDIAN | ||
# else | ||
# error "unknown endianness" | ||
# endif | ||
#ifndef __BIG_ENDIAN | ||
# define __BIG_ENDIAN 4321 | ||
#endif | ||
#ifndef __LITTLE_ENDIAN | ||
# define __LITTLE_ENDIAN 1234 | ||
#endif | ||
#else | ||
# include <endian.h> | ||
#endif | ||
|
||
#endif /* _LTT_ENDIAN_H */ |
Oops, something went wrong.