trivial question regarding byte ordering

From: Allexio Ju
Date: Fri Feb 23 2007 - 10:18:31 EST


Hi,

Is there a API (or macro) that checks CPU endianness and does byte
ordering conversion on given data (32-bit) if endianness is
big-endian?

Thank you in advance for your comment.

Regards,

Allexio
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/