Skip to content

Commit

Permalink
alpha: Define FP_TRAPPING_EXCEPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Henderson committed Jun 15, 2012
1 parent 7fd8e5a commit 5400a7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog.alpha
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2012-06-15 Richard Henderson <rth@twiddle.net>

* sysdeps/alpha/soft-fp/sfp-machine.h (FP_TRAPPING_EXCEPTIONS): New.

* sysdeps/alpha/fpu/s_rint.c (__rint): Handle inexact regardless
of -mieee-with-inexact.
* sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
Expand Down
5 changes: 4 additions & 1 deletion sysdeps/alpha/soft-fp/sfp-machine.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Machine-dependent software floating-point definitions.
Alpha userland IEEE 128-bit version.
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004-2012 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) and
Expand Down Expand Up @@ -91,3 +91,6 @@ do { \
__ieee_set_fp_control (t | _fex); \
} \
} while (0)

#define FP_TRAPPING_EXCEPTIONS \
((__ieee_get_fp_control () & SWCR_ENABLE_MASK) << SWCR_ENABLE_SHIFT)

0 comments on commit 5400a7d

Please sign in to comment.