OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [libposix/] [include/] [posix/] [bits/] [endian.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
#ifndef _ENDIAN_H
2
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
3
#endif
4
 
5
/* ARM can be either big or little endian.  */
6
#ifdef __ARMEB__
7
# define __BYTE_ORDER __BIG_ENDIAN
8
#else
9
# define __BYTE_ORDER __LITTLE_ENDIAN
10
#endif
11
 
12
/* FPA floating point units are always big-endian, irrespective of the
13
   CPU endianness.  VFP floating point units use the same endianness
14
   as the rest of the system.  */
15
#if defined __VFP_FP__ || defined __MAVERICK__
16
# define __FLOAT_WORD_ORDER __BYTE_ORDER 
17
#else
18
# define __FLOAT_WORD_ORDER __BIG_ENDIAN
19
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.