This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: mon_grouping bug
- From: Paul Mackerras <paulus at samba dot org>
- To: "Kevin.Hendricks" <kevin dot hendricks at sympatico dot ca>
- Cc: Roland McGrath <roland at redhat dot com>,Gerhard Tonn <GerhardTonn at gammatau dot de>,Andreas Schwab <schwab at suse dot de>, libc-alpha at sources dot redhat dot com
- Date: Sat, 15 Mar 2003 13:03:04 +1100 (EST)
- Subject: Re: mon_grouping bug
- References: <200303142040.h2EKekS22152@magilla.sf.frob.com><ECDDD288-565D-11D7-9F5C-0030654D6A26@sympatico.ca>
- Reply-to: paulus at samba dot org
Kevin.Hendricks writes:
> ppc32 linux defaults to unsigned char.
>
> Unfortunately, I have no idea about about other os implementations on
> ppc32 (netbsd, aix, darwin, etc) or if this is even true for ppc64
> linux.
ppc64 linux also defaults to unsigned char. I think most other
implementations would too, since the underlying reason is that the PPC
architecture has a load-byte-and-zero-extend instruction but not a
load-byte-and-sign-extend. (There are 16-bit and 32-bit
sign-extending loads, but not an 8-bit one.)
Paul.