glibc/sysdeps/alpha/fpu
Joseph Myers 9ed2e15ff4 Move math_opt_barrier, math_force_eval to separate math-barriers.h.
This patch continues cleaning up math_private.h by moving the
math_opt_barrier and math_force_eval macros to a separate header
math-barriers.h.

At present, those macros are inside a "#ifndef math_opt_barrier" in
math_private.h to allow architectures to override them and then use
a separate math-barriers.h header, no such #ifndef or #include_next is
needed; architectures just have their own alternative version of
math-barriers.h when providing their own optimized versions that avoid
going through memory unnecessarily.  The generic math-barriers.h has a
comment added to document these two macros.

In this patch, math_private.h is made to #include <math-barriers.h>,
so files using these macros do not need updating yet.  That is because
of uses of math_force_eval in math_check_force_underflow and
math_check_force_underflow_nonneg, which are still defined in
math_private.h.  Once those are moved out to a separate header, that
separate header can be made to include <math-barriers.h>, as can the
other files directly using these barrier macros, and then the include
of <math-barriers.h> from math_private.h can be removed.

Tested for x86_64 and x86.  Also tested with build-many-glibcs.py that
installed stripped shared libraries are unchanged by this patch.

	* sysdeps/generic/math-barriers.h: New file.
	* sysdeps/generic/math_private.h [!math_opt_barrier]
	(math_opt_barrier): Move to math-barriers.h.
	[!math_opt_barrier] (math_force_eval): Likewise.
	* sysdeps/aarch64/fpu/math-barriers.h: New file.
	* sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
	math-barriers.h.
	(math_force_eval): Likewise.
	* sysdeps/alpha/fpu/math-barriers.h: New file.
	* sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
	math-barriers.h.
	(math_force_eval): Likewise.
	* sysdeps/x86/fpu/math-barriers.h: New file.
	* sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
	math-barriers.h.
	(math_force_eval): Likewise.
	* sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
	* sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
	multiple-include guard for rename.
	* sysdeps/powerpc/fpu/math-barriers.h: New file.
	* sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
	math-barriers.h.
	(math_force_eval): Likewise.
2018-05-09 19:45:47 +00:00
..
bits Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cabsf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cargf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cfloat-compat.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cimagf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
conjf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
crealf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
e_sqrt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
e_sqrtf.c
fclrexcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fedisblxcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
feenablxcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetenv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetexcept.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetmode.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetround.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
feholdexcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fenv_libc.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetenv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetexcept.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetmode.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetround.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
feupdateenv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fgetexcptflg.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fpu_control.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fsetexcptflg.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ftestexcept.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
get-rounding-mode.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
libm-test-ulps Update Alpha libm-test-ulps 2018-01-27 13:31:38 +01:00
libm-test-ulps-name Do not hardcode platform names in manual/libm-err-tab.pl (bug 14139). 2016-11-04 16:49:06 +00:00
math_private.h Move math_opt_barrier, math_force_eval to separate math-barriers.h. 2018-05-09 19:45:47 +00:00
math-barriers.h Move math_opt_barrier, math_force_eval to separate math-barriers.h. 2018-05-09 19:45:47 +00:00
s_cacosf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_cacoshf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_casinf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_casinhf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_catanf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_catanhf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ccosf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ccoshf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_cexpf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_clog10f.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_clogf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_copysign.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_copysignf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_cpowf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_cprojf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_csinf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_csinhf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_csqrtf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ctanf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ctanhf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_fabs.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_fabsf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_fma.c Use libm_alias_double for dbl-64 fma. 2017-10-04 20:32:48 +00:00
s_isnan.c Don't include math.h/math_private.h in math_ldbl_opt.h. 2018-03-10 15:18:08 -05:00
s_isnanf.c
s_llrint.c
s_llrintf.c
s_llround.c
s_llroundf.c
s_lrint.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lrintf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lround.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lroundf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_rint.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_rintf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Versions