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,90212413571e3e8b X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeedt0.toon.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Erik Baigar Newsgroups: comp.lang.ada Subject: Re: Endian-problem/bug with system.bit_ops (gnat3.15)... Date: Sat, 15 Mar 2008 20:45:16 +0100 Organization: T-Online Message-ID: <47DC274C.4D6BA726@baigar.de> References: <47DB8194.62FE76B0@baigar.de> <47dbbacc$0$23854$4f793bc4@news.tdc.fi> <47DC1B0B.A4976DBB@baigar.de> <47dc22a4$0$8166$4f793bc4@news.tdc.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1205610701 01 5926 9NtEOThlqCLyhR4 080315 19:51:41 X-Complaints-To: usenet-abuse@t-online.de X-ID: T5pnGsZHgewU4vFc-DqivlU83YCgBb8k7pyQNw568SHPJFHlTrF6gT X-Mailer: Mozilla 4.76C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en Xref: g2news1.google.com comp.lang.ada:20425 Date: 2008-03-15T20:45:16+01:00 List-Id: Niklas Holsti wrote: > As I understand it, and have observed in some programs and some > targets, a bitwise operation (and, or, xor, not) on modular types > with a power-of-two modulus translates directly into the > corresponding machine instruction. I expect such modular types to > be as fast as System.Bit_Ops, even if the operations in > System.Bit_Ops are intrinsic or inlined. Thanks for this information... Hopefully I will find the time to give this one a try, best regards, Erik.