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