GNU Emacs 18.55 and AIX PS/2 1.1

Luiz H de Figueiredo lhf at aries5.uucp
Wed Oct 18 02:02:46 AEST 1989


In article <MEISSNER.89Oct16114934 at twohot.rtp.dg.com> meissner at twohot.rtp.dg.com (Michael Meissner) writes:
>In article <2896 at netcom.UUCP> hue at netcom.UUCP (Jonathan Hue) writes:
>
>A usually more efficent way of sign extending characters (depending
>on how much branches cost in terms of hardware speed or compiler
>optimizations) is:
>
>#define SIGN_EXTEND_CHAR(a) ((((a) & 0xFF) ^ 0x80) -  0x80)

Why not use 

#define SIGN_EXTEND_CHAR(a) ( (int) (signed char) (a) )

I am missing something?

-------------------------------------------------------------------------------
Luiz Henrique de Figueiredo		internet: lhf at aries5.uwaterloo.ca
Computer Systems Group			bitnet:   lhf at watcsg.bitnet
University of Waterloo
-------------------------------------------------------------------------------
eof



More information about the Comp.unix.aix mailing list