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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5081b691b6105830 X-Google-Attributes: gid103376,public From: guerby@gnat.com (Laurent Guerby) Subject: Re: one's complement operator in Ada Date: 1996/07/26 Message-ID: #1/1 X-Deja-AN: 170350028 sender: guerby@schonberg.cs.nyu.edu references: <31F8DE73.41C6@afit.af.mil> organization: New York University reply-to: guerby@gnat.com newsgroups: comp.lang.ada Date: 1996-07-26T00:00:00+00:00 List-Id: Steven> For example, in C++: Steven> ulong mask; Steven> ulong j:= ~mask; For example, in Ada 95: type U_Long is mod 2 ** 32; -- or use Interfaces.Unsigned_32 Mask : U_Long; J : U_Long := not Mask; Question, how do you do easily a mask rotation in C? In Ada 95, you just use Interfaces.Rotate_Left (or Right). -- Laurent Guerby , Team Ada. "Use the Source, Luke. The Source will be with you, always (GPL)."