Subversion Repositories HelenOS

Rev

Rev 2787 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2787 Rev 2925
Line 34... Line 34...
34
 */
34
 */
35
 
35
 
36
#ifndef KERN_arm32_BYTEORDER_H_
36
#ifndef KERN_arm32_BYTEORDER_H_
37
#define KERN_arm32_BYTEORDER_H_
37
#define KERN_arm32_BYTEORDER_H_
38
 
38
 
39
#include <byteorder.h>
-
 
40
 
-
 
41
#ifdef BIG_ENDIAN
39
#ifdef BIG_ENDIAN
42
 
-
 
43
#define uint32_t_le2host(n)     uint32_t_byteorder_swap(n)
-
 
44
#define uint64_t_le2host(n)     uint64_t_byteorder_swap(n)
-
 
45
 
-
 
46
#define uint32_t_be2host(n)     (n)
40
#define ARCH_IS_BIG_ENDIAN
47
#define uint64_t_be2host(n)     (n)
-
 
48
 
-
 
49
#else
41
#else
50
 
-
 
51
#define uint32_t_le2host(n)     (n)
-
 
52
#define uint64_t_le2host(n)     (n)
42
#define ARCH_IS_LITTLE_ENDIAN
53
 
-
 
54
#define uint32_t_be2host(n)     uint32_t_byteorder_swap(n)
-
 
55
#define uint64_t_be2host(n)     uint64_t_byteorder_swap(n)
-
 
56
 
-
 
57
#endif
43
#endif
58
 
44
 
59
#endif
45
#endif
60
 
46
 
61
/** @}
47
/** @}