Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2003 → Rev 2001

/trunk/kernel/arch/sparc64/include/byteorder.h
35,13 → 35,18
#ifndef KERN_sparc64_BYTEORDER_H_
#define KERN_sparc64_BYTEORDER_H_
 
#include <arch/types.h>
#include <byteorder.h>
 
#define uint32_t_le2host(n) uint64_t_byteorder_swap(n)
#define uint64_t_le2host(n) uint32_t_byteorder_swap(n)
static inline uint64_t uint64_t_le2host(uint64_t n)
{
return uint64_t_byteorder_swap(n);
}
 
#define uint32_t_be2host(n) (n)
#define uint64_t_be2host(n) (n)
static inline unative_t unative_t_le2host(unative_t n)
{
return uint64_t_byteorder_swap(n);
}
 
#endif