_DOUBLE_IS_32BITS fixes for new c99 math functions
Thomas Fitzsimmons
fitzsim@redhat.com
Wed Jun 19 10:18:00 GMT 2002
On Wed, 2002-06-19 at 12:39, Joern Rennecke wrote:
>
> --
> --------------------------
> SuperH
> 2430 Aztec West / Almondsbury / BRISTOL / BS32 4AQ
> T:+44 1454 462330
> ----
>
Applied. Thanks!
Tom
> Wed Jun 19 17:18:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
>
> * libm/common/sf_lround.c (round): Change name to:
> (lround).
> * libm/common/sf_remquo.c (remquo): Pass all arguemnts to remquof.
>
> Index: libm/common/sf_lround.c
> ===================================================================
> RCS file: /cvs/src/src/newlib/libm/common/sf_lround.c,v
> retrieving revision 1.1
> diff -p -r1.1 sf_lround.c
> *** libm/common/sf_lround.c 7 Jun 2002 21:59:56 -0000 1.1
> --- libm/common/sf_lround.c 19 Jun 2002 16:18:36 -0000
> ***************
> *** 50,62 ****
> #ifdef _DOUBLE_IS_32BITS
>
> #ifdef __STDC__
> ! long int round(double x)
> #else
> ! long int round(x)
> double x;
> #endif
> {
> ! return (double) roundf((float) x);
> }
>
> #endif /* defined(_DOUBLE_IS_32BITS) */
> --- 50,62 ----
> #ifdef _DOUBLE_IS_32BITS
>
> #ifdef __STDC__
> ! long int lround(double x)
> #else
> ! long int lround(x)
> double x;
> #endif
> {
> ! return (double) lroundf((float) x);
> }
>
> #endif /* defined(_DOUBLE_IS_32BITS) */
> Index: libm/common/sf_remquo.c
> ===================================================================
> RCS file: /cvs/src/src/newlib/libm/common/sf_remquo.c,v
> retrieving revision 1.1
> diff -p -r1.1 sf_remquo.c
> *** libm/common/sf_remquo.c 7 Jun 2002 21:59:56 -0000 1.1
> --- libm/common/sf_remquo.c 19 Jun 2002 16:18:36 -0000
> ***************
> *** 44,50 ****
> int *quo;
> #endif
> {
> ! return (double) remquof((float) x);
> }
>
> #endif /* defined(_DOUBLE_IS_32BITS) */
> --- 44,50 ----
> int *quo;
> #endif
> {
> ! return (double) remquof((float) x, (float) y, quo);
> }
>
> #endif /* defined(_DOUBLE_IS_32BITS) */
--
Thomas Fitzsimmons
Red Hat Canada Limited e-mail: fitzsim@redhat.com
2323 Yonge Street, Suite 300
Toronto, ON M4P2C9
More information about the Binutils
mailing list