From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cdc06d48151b2720 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Byte Swapping in Ada Date: Thu, 26 Apr 2007 17:43:37 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1177613699.956152.39280@n15g2000prd.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1177623818 24031 192.74.137.71 (26 Apr 2007 21:43:38 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 26 Apr 2007 21:43:38 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:uWnDAbVftZUSSXJ5vBvT8RiR2vg= Xref: g2news1.google.com comp.lang.ada:15325 Date: 2007-04-26T17:43:37-04:00 List-Id: markp 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