comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Byte Swapping in Ada
Date: Thu, 26 Apr 2007 17:43:37 -0400
Date: 2007-04-26T17:43:37-04:00	[thread overview]
Message-ID: <wccodlax14m.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 1177613699.956152.39280@n15g2000prd.googlegroups.com

markp <markwork66@yahoo.com> writes:

> Does Ada provide any built-in byte swapping routines such as ntohl,
> htons, etc.?

No, but the latest version of GNAT has a package called GNAT.Byte_Swapping.
The x86 version is written with machine code inserts.

- Bob



  reply	other threads:[~2007-04-26 21:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-26 18:55 Byte Swapping in Ada markp
2007-04-26 21:43 ` Robert A Duff [this message]
2007-04-27  4:54 ` Jeffrey R. Carter
2007-04-27 11:47 ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox