]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/LibC/Main/Arm/int_endianness.h
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / StdLib / LibC / Main / Arm / int_endianness.h
CommitLineData
d799c028
HL
1/** @file\r
2*\r
3* Copyright (c) 2013 - 2014, ARM Limited. All rights reserved.\r
4*\r
5* This program and the accompanying materials\r
6* are licensed and made available under the terms and conditions of the BSD License\r
7* which accompanies this distribution. The full text of the license may be found at\r
8* http://opensource.org/licenses/bsd-license.php\r
9*\r
10* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12*\r
13**/\r
14/**\r
15University of Illinois/NCSA\r
16Open Source License\r
17\r
18Copyright (c) 2009-2014 by the contributors listed in CREDITS.TXT\r
19\r
20All rights reserved.\r
21\r
22Developed by:\r
23\r
24 LLVM Team\r
25\r
26 University of Illinois at Urbana-Champaign\r
27\r
28 http://llvm.org\r
29\r
30Permission is hereby granted, free of charge, to any person obtaining a copy of\r
31this software and associated documentation files (the "Software"), to deal with\r
32the Software without restriction, including without limitation the rights to\r
33use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\r
34of the Software, and to permit persons to whom the Software is furnished to do\r
35so, subject to the following conditions:\r
36\r
37 * Redistributions of source code must retain the above copyright notice,\r
38 this list of conditions and the following disclaimers.\r
39\r
40 * Redistributions in binary form must reproduce the above copyright notice,\r
41 this list of conditions and the following disclaimers in the\r
42 documentation and/or other materials provided with the distribution.\r
43\r
44 * Neither the names of the LLVM Team, University of Illinois at\r
45 Urbana-Champaign, nor the names of its contributors may be used to\r
46 endorse or promote products derived from this Software without specific\r
47 prior written permission.\r
48\r
49THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
50IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
51FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
52CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
53LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
54OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE\r
55SOFTWARE.\r
56**/\r
57\r
58#ifndef INT_ENDIANNESS_H\r
59#define INT_ENDIANNESS_H\r
60\r
61#include <sys/endian.h>\r
62\r
63#if _BYTE_ORDER == _BIG_ENDIAN\r
64#define _YUGA_LITTLE_ENDIAN 0\r
65#define _YUGA_BIG_ENDIAN 1\r
66#elif _BYTE_ORDER == _LITTLE_ENDIAN\r
67#define _YUGA_LITTLE_ENDIAN 1\r
68#define _YUGA_BIG_ENDIAN 0\r
69#endif /* _BYTE_ORDER */\r
70\r
71#endif /* INT_ENDIANNESS_H */\r