decLibrary.c (__dec_byte_swap): Use uint32_t for argument and return types.

* decLibrary.c (__dec_byte_swap): Use uint32_t for argument and
	return types.

From-SVN: r110638
This commit is contained in:
Ben Elliston 2006-02-06 04:27:16 +00:00 committed by Ben Elliston
parent a4a9df5fee
commit 8a46b94f6c
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2006-02-06 Ben Elliston <bje@au.ibm.com>
* decLibrary.c (__dec_byte_swap): Use uint32_t for argument and
return types.
2006-01-03 Roger Sayle <roger@eyesopen.com> 2006-01-03 Roger Sayle <roger@eyesopen.com>
Kaveh R. Ghazi <ghazi@caip.rutgers.edu> Kaveh R. Ghazi <ghazi@caip.rutgers.edu>

View File

@ -1,5 +1,5 @@
/* Temporary library support for decimal floating point. /* Temporary library support for decimal floating point.
Copyright (C) 2005 Free Software Foundation, Inc. Copyright (C) 2005, 2006 Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
@ -81,13 +81,13 @@ __dfp_raise (int exception __attribute__ ((unused)))
raise (SIGFPE); raise (SIGFPE);
} }
unsigned long uint32_t
__dec_byte_swap (unsigned long in) __dec_byte_swap (uint32_t in)
{ {
unsigned long out; uint32_t out = 0;
unsigned char *p = (unsigned char *) &out; unsigned char *p = (unsigned char *) &out;
union { union {
unsigned long i; uint32_t i;
unsigned char b[4]; unsigned char b[4];
} u; } u;