home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!think.com!unixland!public!peterk
- From: peterk@public.sub.org (Peter Kittel)
- Subject: Re: finding 1st one in integer
- Organization: Public News & Mailserver, Commodore Germany PM UNIX, Frankfurt
- Date: Wed, 22 Jul 92 16:56:04 GMT
- Message-ID: <1992Jul22.165604.20533@public.sub.org>
- References: <Brqu3F.1J4@undergrad.math.waterloo.edu> <1992Jul21.173805.12045@bcrka451.bnr.ca> <14hsk4INNke@rodan.UU.NET> <1992Jul21.165726@is.morgan.com>
- Lines: 13
-
- berlin@is.morgan.com (Alexander Berlin) writes:
-
- >Vadim, you are assuming Big Endian, aren't you?
- >The original article asked for PORTABLE code. ">>=" depends on byte order.
-
- Hmm, are you really sure that the result of a >> operation is dependant
- of byte order??? That's the task of the compiler to do this the right
- way. ">>" works on normal variables, not on memory locations.
-
- --
- Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions...
- Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk
- or peterk@public.sub.org
-