This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

_DOUBLE_IS_32BITS fixes for new c99 math functions


-- 
--------------------------
SuperH
2430 Aztec West / Almondsbury / BRISTOL / BS32 4AQ
T:+44 1454 462330
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) */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]