PATCH: Use unsigned long int in __bswap_64 for __WORDSIZE == 64

Roland McGrath roland@hack.frob.com
Thu Oct 11 17:15:00 GMT 2012


> 2012-10-09  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	* sysdeps/x86/bits/byteswap.h [__WORDSIZE == 64](__bswap_64): 
> 	Use unsigned long int for GCC >= 4.2.

This should look like:

	* sysdeps/x86/bits/byteswap.h [__GNUC_PREREQ (4, 2)]
	[__WORDSIZE == 64] (__bswap_64): New implementation, uses
	'unsigned long int' rather than 'unsigned long long int'
	in argument and return types.

It's still my preference to define a macro for the type and just
change all the appearances of either 'unsigned long long' or
'unsigned long' in this file to use that macro.


Thanks,
Roland



More information about the Libc-alpha mailing list