Subversion Repositories HelenOS-historic

Rev

Rev 1769 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1769 Rev 1780
Line 37... Line 37...
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
39
#include <byteorder.h>
39
#include <byteorder.h>
40
 
40
 
41
#ifdef BIG_ENDIAN
41
#ifdef BIG_ENDIAN
42
static inline __u64 __u64_le2host(__u64 n)
42
static inline uint64_t uint64_t_le2host(uint64_t n)
43
{
43
{
44
    return __u64_byteorder_swap(n);
44
    return uint64_t_byteorder_swap(n);
45
}
45
}
46
 
46
 
47
static inline __native __native_le2host(__native n)
47
static inline unative_t unative_t_le2host(unative_t n)
48
{
48
{
49
    return __u32_byteorder_swap(n);
49
    return uint32_t_byteorder_swap(n);
50
}
50
}
51
 
51
 
52
#else
52
#else
53
#  define __native_le2host(n)       (n)
53
#  define unative_t_le2host(n)      (n)
54
#  define __u64_le2host(n)      (n)
54
#  define uint64_t_le2host(n)       (n)
55
#endif
55
#endif
56
 
56
 
57
#endif
57
#endif
58
 
58
 
59
/** @}
59
/** @}