]>
git.proxmox.com Git - mirror_edk2.git/blob - StdLib/LibC/Main/Arm/int_types.h
2 University of Illinois/NCSA
5 Copyright (c) 2009-2014 by the contributors listed in CREDITS.TXT
13 University of Illinois at Urbana-Champaign
17 Permission is hereby granted, free of charge, to any person obtaining a copy of
18 this software and associated documentation files (the "Software"), to deal with
19 the Software without restriction, including without limitation the rights to
20 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
21 of the Software, and to permit persons to whom the Software is furnished to do
22 so, subject to the following conditions:
24 * Redistributions of source code must retain the above copyright notice,
25 this list of conditions and the following disclaimers.
27 * Redistributions in binary form must reproduce the above copyright notice,
28 this list of conditions and the following disclaimers in the
29 documentation and/or other materials provided with the distribution.
31 * Neither the names of the LLVM Team, University of Illinois at
32 Urbana-Champaign, nor the names of its contributors may be used to
33 endorse or promote products derived from this Software without specific
34 prior written permission.
36 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
38 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
39 CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
48 #include "int_endianness.h"
51 typedef unsigned su_int
;
53 typedef long long di_int
;
54 typedef unsigned long long du_int
;
61 #if _YUGA_LITTLE_ENDIAN
67 #endif /* _YUGA_LITTLE_ENDIAN */
76 #if _YUGA_LITTLE_ENDIAN
82 #endif /* _YUGA_LITTLE_ENDIAN */
87 #define CRT_HAS_128BIT
91 typedef int ti_int
__attribute__ ((mode (TI
)));
92 typedef unsigned tu_int
__attribute__ ((mode (TI
)));
99 #if _YUGA_LITTLE_ENDIAN
105 #endif /* _YUGA_LITTLE_ENDIAN */
114 #if _YUGA_LITTLE_ENDIAN
120 #endif /* _YUGA_LITTLE_ENDIAN */
124 static inline ti_int
make_ti(di_int h
, di_int l
) {
131 static inline tu_int
make_tu(du_int h
, du_int l
) {
138 #endif /* CRT_HAS_128BIT */
154 #if _YUGA_LITTLE_ENDIAN
160 #endif /* _YUGA_LITTLE_ENDIAN */
169 #endif /* INT_TYPES_H */