Skip to content

Commit

Permalink
* sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding. * …
Browse files Browse the repository at this point in the history
…sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New. * sysdeps/alpha/fpu/libm-test-ulps: Regenerate. * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file. * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file. * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.

	* sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
	* sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
	* sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
	* sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
	* sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
	* sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.

2007-03-13  Richard Henderson  <rth@redhat.com>
  • Loading branch information
Richard Henderson committed Mar 14, 2007
1 parent a5ea509 commit 62789da
Show file tree
Hide file tree
Showing 7 changed files with 460 additions and 75 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2007-03-13 Richard Henderson <rth@redhat.com>

* sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
* sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
* sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
* sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
* sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
* sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.

2007-03-13 Richard Henderson <rth@redhat.com>

* elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
Expand Down
7 changes: 4 additions & 3 deletions sysdeps/alpha/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ ifeq ($(subdir),elf)
CFLAGS-rtld.c = -mbuild-constants
endif

# For now, build everything with full IEEE math support.
# TODO: build separate libm and libm-ieee.
sysdep-CFLAGS += -mieee
# Build everything with full IEEE math support, and with dynamic rounding;
# there are a number of math routines that are defined to work with the
# "current" rounding mode, and it's easiest to set this with all of them.
sysdep-CFLAGS += -mieee -mfp-rounding-mode=d

# libc.so requires about 16k for the small data area, which is well
# below the 64k maximum.
Expand Down
10 changes: 10 additions & 0 deletions sysdeps/alpha/fpu/bits/mathinline.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ __NTH (__signbit (double __x))
return __u.__i < 0;
}

__MATH_INLINE int
__NTH (__signbitl (long double __x))
{
__extension__ union {
long double __d;
long __i[sizeof(long double)/sizeof(long)];
} __u = { __d: __x };
return __u.__i[sizeof(long double)/sizeof(long) - 1] < 0;
}

#endif /* C99 */

#endif /* __NO_MATH_INLINES */
Loading

0 comments on commit 62789da

Please sign in to comment.