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.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ee7e80feb46de7ac,start X-Google-Attributes: gid103376,public From: d941686@sp2 (Leong San Io Francisco) Subject: How to perform bit-wise xor, and...? Date: 1996/11/22 Message-ID: <5747oa$svi@umacss1.umac.mo>#1/1 X-Deja-AN: 198060424 distribution: inet organization: University of Macau newsgroups: comp.lang.ada Date: 1996-11-22T00:00:00+00:00 List-Id: Hi! Can someone teach me how to perform bit-wise "xor", and, "or" of two integers in Ada so that it can generate code as close as to the underlying computer's instructions like the C's ^, &, | operators? I am trying to write some computer instructions emulation stuff as well as bitmap graphics manipulation which requires "xor", "or" bytes. Is multiplication by 2 really equal to shift left and division by integer 2 to shift right? My Ada compiler only provides xor, and operations for booleans and not integers... Thanks. Francisco Leong