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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: AI12-0218: What is the portable representation clause for processing IETF packets on little-endian machines? Date: Mon, 14 May 2018 17:43:53 -0700 Organization: A noiseless patient Spider Message-ID: <87lgcld9yu.fsf@nightsong.com> References: <87lgcphdxq.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="13eab9dceb0cdec3c0378538724f9274"; logging-data="13806"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lNNCaUbsyjpKYgrFXKAnC" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:KND9cTrV+0YjT9ZhwN30IWwcBig= sha1:paI1tUypTeCUQiLnFVzxwF0lsAI= Xref: reader02.eternal-september.org comp.lang.ada:52352 Date: 2018-05-14T17:43:53-07:00 List-Id: > What's "BSWAP"? It's not an instruction I'm familar with on x86. http://www.felixcloutier.com/x86/BSWAP.html > (Admittedly, I don't usually use newer instructions because of the > need to have some sort of alternative to run on older processors.) It was introduced with the 486 so I think it runs on almost any x86 that anyone is currently using. > In any case, one has to build such support into the back-end. In GCC you can write intrinsics by using pragmas that include the desired assembly code.