From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glynn Clements Subject: Re: canonical byte swap macros? Date: Mon, 11 Jul 2005 20:23:39 +0100 Message-ID: <17106.51003.40109.464025@gargle.gargle.HOWL> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: "Robert P. J. Day" Cc: C programming list Robert P. J. Day wrote: > is there a standard set of byte swap macros/functions for doing > big/little endian conversion? i have no interest in re-inventing the > wheel and i'm sure there's a universally-recognized set of macros for > this, no? glibc has bswap_{16,32,64} in byteswap.h, but I don't think that they are specified by any standard. -- Glynn Clements