OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-m68knommu/] [byteorder.h] - Diff between revs 1765 and 1782

Only display areas with differences | Details | Blame | View Log

Rev 1765 Rev 1782
#ifndef _M68K_BYTEORDER_H
#ifndef _M68K_BYTEORDER_H
#define _M68K_BYTEORDER_H
#define _M68K_BYTEORDER_H
 
 
#ifndef __BIG_ENDIAN
#ifndef __BIG_ENDIAN
#define __BIG_ENDIAN 4321
#define __BIG_ENDIAN 4321
#endif
#endif
 
 
#ifndef __BIG_ENDIAN_BITFIELD
#ifndef __BIG_ENDIAN_BITFIELD
#define __BIG_ENDIAN_BITFIELD
#define __BIG_ENDIAN_BITFIELD
#endif
#endif
 
 
#undef ntohl
#undef ntohl
#undef ntohs
#undef ntohs
#undef htonl
#undef htonl
#undef htons
#undef htons
 
 
extern unsigned long int        ntohl(unsigned long int);
extern unsigned long int        ntohl(unsigned long int);
extern unsigned short int       ntohs(unsigned short int);
extern unsigned short int       ntohs(unsigned short int);
extern unsigned long int        htonl(unsigned long int);
extern unsigned long int        htonl(unsigned long int);
extern unsigned short int       htons(unsigned short int);
extern unsigned short int       htons(unsigned short int);
 
 
extern __inline__ unsigned long int     __ntohl(unsigned long int);
extern __inline__ unsigned long int     __ntohl(unsigned long int);
extern __inline__ unsigned short int    __ntohs(unsigned short int);
extern __inline__ unsigned short int    __ntohs(unsigned short int);
 
 
extern __inline__ unsigned long int
extern __inline__ unsigned long int
__ntohl(unsigned long int x)
__ntohl(unsigned long int x)
{
{
        return x;
        return x;
}
}
 
 
extern __inline__ unsigned short int
extern __inline__ unsigned short int
__ntohs(unsigned short int x)
__ntohs(unsigned short int x)
{
{
        return x;
        return x;
}
}
 
 
#define __htonl(x) __ntohl(x)
#define __htonl(x) __ntohl(x)
#define __htons(x) __ntohs(x)
#define __htons(x) __ntohs(x)
 
 
#define ntohl(x) __ntohl(x)
#define ntohl(x) __ntohl(x)
#define ntohs(x) __ntohs(x)
#define ntohs(x) __ntohs(x)
#define htonl(x) __htonl(x)
#define htonl(x) __htonl(x)
#define htons(x) __htons(x)
#define htons(x) __htons(x)
 
 
#endif
#endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.