Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2002 → Rev 2003

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