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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,64599bfe530783cd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-19 12:25:07 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!btnet-peer1!btnet-feed3!newreader.ukcore.bt.net!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Any examples of Byte Ordering Functions Date: Sun, 19 Oct 2003 19:24:44 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1066243458.911546@master.nyc.kbcfp.com> NNTP-Posting-Host: host81-129-50-50.in-addr.btopenworld.com X-Trace: hercules.btinternet.com 1066591484 21913 81.129.50.50 (19 Oct 2003 19:24:44 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sun, 19 Oct 2003 19:24:44 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:1149 Date: 2003-10-19T19:24:44+00:00 List-Id: "chris" wrote in message news:d6Akb.6022$mM1.5008@newsfep4-winn.server.ntli.net... > Didn't know about that, thanks! That means if we want to output any Your welcome :-) > A := Byte (Shift_Right (Unsigned_32(W), 8)); Make Word a subtype of Unsigned_16 and you don't need to convert to Unsigned_32. If you don't want to do this then you can convert to Unsigned_16 as you are shifting right not left (value of smaller magnitude not larger). > and this will work whatever the platform we compile on? yup