1ifeq ($(subdir),math)
2sysdep_routines += s_modf-power5+ s_modf-ppc32 \
3		   s_modff-power5+ s_modff-ppc32
4
5libm-sysdep_routines += s_llrintf-power6 s_llrintf-ppc32 s_llrint-power6 \
6			s_llrint-ppc32 s_llround-power6 s_llround-power5+ \
7			s_llround-ppc32 s_ceil-power5+ \
8			s_ceil-ppc32 s_ceilf-power5+ s_ceilf-ppc32 \
9			s_floor-power5+ s_floor-ppc32 s_floorf-power5+ \
10			s_floorf-ppc32 s_round-power5+ s_round-ppc32 \
11			s_roundf-power5+ s_roundf-ppc32 s_trunc-power5+ \
12			s_trunc-ppc32 s_truncf-power5+ s_truncf-ppc32 \
13			s_lround-power6x \
14			s_lround-power5+ s_lround-ppc32 s_lrint-power6x \
15			s_lrint-ppc32 s_modf-power5+ s_modf-ppc32 \
16			s_modff-power5+ s_modff-ppc32 s_logbl-power7 \
17			s_logbl-ppc32 s_logb-power7 s_logb-ppc32 \
18			s_logbf-power7 s_logbf-ppc32
19
20CFLAGS-s_llrintf-power6.c += -mcpu=power6
21CFLAGS-s_llrintf-ppc32.c += -mcpu=power4
22CFLAGS-s_llrint-power6.c += -mcpu=power6
23CFLAGS-s_llrint-ppc32.c += -mcpu=power4
24CFLAGS-s_lrint-ppc32.c += -mcpu=power4
25CFLAGS-s_llround-power6.c += -mcpu=power6
26CFLAGS-s_llround-power5+.c += -mcpu=power5+
27CFLAGS-s_llround-ppc32.c += -mcpu=power4
28CFLAGS-s_lround-ppc32.c += -mcpu=power4
29CFLAGS-s_lround-power5+.c += -mcpu=power5+
30CFLAGS-s_ceil-power5+.c = -mcpu=power5+
31CFLAGS-s_ceilf-power5+.c = -mcpu=power5+
32CFLAGS-s_modf-power5+.c = -mcpu=power5+
33CFLAGS-s_modff-power5+.c = -mcpu=power5+
34CFLAGS-s_logbl-power7.c = -mcpu=power7
35CFLAGS-s_logb-power7.c = -mcpu=power7
36CFLAGS-s_logbf-power7.c = -mcpu=power7
37
38# These files quiet sNaNs in a way that is optimized away without
39# -fsignaling-nans.
40CFLAGS-s_modf-ppc32.c += -fsignaling-nans
41CFLAGS-s_modff-ppc32.c += -fsignaling-nans
42endif
43