about summary refs log tree commit diff
path: root/sysdeps/aarch64/fpu/Makefile
blob: 3ed779fadd754ceef03cc9322e9915484216974f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
ifeq ($(subdir),math)
CFLAGS-e_sqrtf.c += -fno-math-errno
CFLAGS-e_sqrt.c += -fno-math-errno
CFLAGS-s_lroundf.c += -fno-math-errno
CFLAGS-s_lround.c += -fno-math-errno
CFLAGS-s_llroundf.c += -fno-math-errno
CFLAGS-s_llround.c += -fno-math-errno
# GCC 4.9 and 5 requires the flag to correct emits a f{max,min}nm
# for a __builtin_{fmax,fmin}{f}.
CFLAGS-s_fmax.c += -ffinite-math-only
CFLAGS-s_fmaxf.c += -ffinite-math-only
CFLAGS-s_fmin.c += -ffinite-math-only
CFLAGS-s_fminf.c += -ffinite-math-only
endif

ifeq ($(subdir),mathvec)
libmvec-support += \
  libmvec_double_vlen2_cos \
  libmvec_double_vlen2_exp \
  libmvec_double_vlen2_log \
  libmvec_double_vlen2_pow \
  libmvec_double_vlen2_sin \
  libmvec_float_vlen4_cosf \
  libmvec_float_vlen4_expf \
  libmvec_float_vlen4_logf \
  libmvec_float_vlen4_powf \
  libmvec_float_vlen4_sinf \

install-lib += libmvec_nonshared.a
$(objpfx)libmvec_nonshared.a: $(dep-dummy-lib); $(make-dummy-lib)
endif

ifeq ($(subdir),math)
ifeq ($(build-mathvec),yes)
double-vlen2-funcs = cos exp log pow sin
float-vlen4-funcs = cos exp log pow sin
ifeq ($(test-mathvec),yes)
libmvec-tests += double-vlen2 float-vlen4
endif
endif
endif