This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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]

[PATCH] Minor tweak to soft-fp/soft-fp.h


This is the first in a series of patches I intend to submit to
glibc's software floating point emulation library, soft-fp.
The original intention was to just add support for __absdf2,
__abssf2 and __abstf2 for use by GCC, but unfortunately it looks
like the years have taken their toll on this directory, and
much of it no longer compiles.  It seems easiest to fix it
a bit at a time.

This first instalment is an "obvious" change to soft-fp.h to
allow sfp-machine.h to define FP_RND_NEAREST without having to
provide a definition of FP_ROUNDMODE.  Just like the one in
sysdeps/i386/soft-fp/sfp-machine.h, for example :>

Is this patch OK?


2002-10-31  Roger Sayle  <roger@eyesopen.com>

	* soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
	without defining FP_ROUNDMODE.


Index: soft-fp.h
===================================================================
RCS file: /cvs/glibc/libc/soft-fp/soft-fp.h,v
retrieving revision 1.4
diff -c -3 -p -r1.4 soft-fp.h
*** soft-fp.h	6 Jul 2001 04:55:40 -0000	1.4
--- soft-fp.h	31 Oct 2002 23:51:32 -0000
***************
*** 1,5 ****
  /* Software floating-point emulation.
!    Copyright (C) 1997,1998,1999, 2000 Free Software Foundation, Inc.
     This file is part of the GNU C Library.
     Contributed by Richard Henderson (rth@cygnus.com),
  		  Jakub Jelinek (jj@ultra.linux.cz),
--- 1,5 ----
  /* Software floating-point emulation.
!    Copyright (C) 1997,1998,1999,2000,2002 Free Software Foundation, Inc.
     This file is part of the GNU C Library.
     Contributed by Richard Henderson (rth@cygnus.com),
  		  Jakub Jelinek (jj@ultra.linux.cz),
***************
*** 42,50 ****
  # define FP_RND_ZERO		1
  # define FP_RND_PINF		2
  # define FP_RND_MINF		3
  #ifndef FP_ROUNDMODE
  # define FP_ROUNDMODE		FP_RND_NEAREST
- #endif
  #endif

  /* By default don't care about exceptions. */
--- 42,50 ----
  # define FP_RND_ZERO		1
  # define FP_RND_PINF		2
  # define FP_RND_MINF		3
+ #endif
  #ifndef FP_ROUNDMODE
  # define FP_ROUNDMODE		FP_RND_NEAREST
  #endif

  /* By default don't care about exceptions. */

Roger
--
Roger Sayle,                         E-mail: roger@eyesopen.com
OpenEye Scientific Software,         WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road,     Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507.         Fax: (+1) 505-473-0833


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