Subversion Repositories HelenOS

Rev

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

Rev 2071 Rev 2794
Line 37... Line 37...
37
 
37
 
38
#include <byteorder.h>
38
#include <byteorder.h>
39
 
39
 
40
#ifdef BIG_ENDIAN
40
#ifdef BIG_ENDIAN
41
 
41
 
-
 
42
#define uint16_t_le2host(n)     uint16_t_byteorder_swap(n)
42
#define uint32_t_le2host(n)     uint32_t_byteorder_swap(n)
43
#define uint32_t_le2host(n)     uint32_t_byteorder_swap(n)
43
#define uint64_t_le2host(n)     uint64_t_byteorder_swap(n)
44
#define uint64_t_le2host(n)     uint64_t_byteorder_swap(n)
44
 
45
 
-
 
46
#define uint16_t_be2host(n)     (n)
45
#define uint32_t_be2host(n)     (n)
47
#define uint32_t_be2host(n)     (n)
46
#define uint64_t_be2host(n)     (n)
48
#define uint64_t_be2host(n)     (n)
47
 
49
 
48
#else
50
#else
49
 
51
 
-
 
52
#define uint16_t_le2host(n)     (n)
50
#define uint32_t_le2host(n)     (n)
53
#define uint32_t_le2host(n)     (n)
51
#define uint64_t_le2host(n)     (n)
54
#define uint64_t_le2host(n)     (n)
52
 
55
 
-
 
56
#define uint16_t_be2host(n)     uint16_t_byteorder_swap(n)
53
#define uint32_t_be2host(n)     uint32_t_byteorder_swap(n)
57
#define uint32_t_be2host(n)     uint32_t_byteorder_swap(n)
54
#define uint64_t_be2host(n)     uint64_t_byteorder_swap(n)
58
#define uint64_t_be2host(n)     uint64_t_byteorder_swap(n)
55
 
59
 
56
#endif
60
#endif
57
 
61