Skip to contentSkip to conversation

how to detect big/little endian in a driver module?

DISCUSSION Paul Davis 2 participants 2 messages May 1, 2002 – May 2, 2002

lore
Share & tools
lore

Paul Davis

author
#0 lore raw

whats the preferred macro/method for discovering if we are on a big or little-endian system from within driver code?

there are some details of the Hammerfall-DSP that need to be done differently depending on which system we're on, and using a single architecture type (__powerpc__ etc.) isn't right.

--p

#1 lore raw

At Tue, 30 Apr 2002 21:13:35 -0400,

Quoted 3 lines · Paul Davis

whats the preferred macro/method for discovering if we are on a big or little-endian system from within driver code?

SNDRV_{LITTLE|BIG}_ENDIAN defined in asound.h.

Takashi

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected]