any reason why asm/byteorder.h is not used?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hey,

bttv-driver.c uses the following to check for byteorder:

#if defined(__sparc__) || defined(__powerpc__) || defined(__hppa__)
static unsigned int bigendian=1;
#else
static unsigned int bigendian=0;
#endif

Is there any reason why asm/byteorder.h is not used (__LITTLE_ENDIAN and
__BIG_ENDIAN)? With that, code would look like this (example):

#if defined(__BIG_ENDIAN)
static unsigned int bigendian=1;
#elif defined(__LITTLE_ENDIAN)
static unsigned int bigendian=0;
#else
#error "Unknown byte order!"
#endif

Ronald

-- 
Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx>
Linux Video/Multimedia developer





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux