1 add_subdirectory(generic)
2 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
3 add_subdirectory(${LIBC_TARGET_ARCHITECTURE})
6 function(add_math_entrypoint_object name)
7 # We prefer machine specific implementation if available. Hence we check
8 # that first and return early if we are able to add an alias target for the
9 # machine specific implementation.
10 get_fq_target_name("${LIBC_TARGET_ARCHITECTURE}.${name}" fq_machine_specific_target_name)
11 if(TARGET ${fq_machine_specific_target_name})
12 add_entrypoint_object(
16 .${LIBC_TARGET_ARCHITECTURE}.${name}
21 get_fq_target_name("generic.${name}" fq_generic_target_name)
22 if(TARGET ${fq_generic_target_name})
23 add_entrypoint_object(
32 # Add a dummy entrypoint object for missing implementations. They will be skipped
33 # anyway as there will be no entry for them in the target entrypoints list.
34 add_entrypoint_object(
43 add_math_entrypoint_object(acosf)
44 add_math_entrypoint_object(acoshf)
46 add_math_entrypoint_object(asinf)
47 add_math_entrypoint_object(asinhf)
49 add_math_entrypoint_object(atanf)
51 add_math_entrypoint_object(atanhf)
53 add_math_entrypoint_object(ceil)
54 add_math_entrypoint_object(ceilf)
55 add_math_entrypoint_object(ceill)
57 add_math_entrypoint_object(copysign)
58 add_math_entrypoint_object(copysignf)
59 add_math_entrypoint_object(copysignl)
61 add_math_entrypoint_object(cos)
62 add_math_entrypoint_object(cosf)
63 add_math_entrypoint_object(coshf)
65 add_math_entrypoint_object(expf)
67 add_math_entrypoint_object(exp2f)
69 add_math_entrypoint_object(exp10f)
71 add_math_entrypoint_object(expm1f)
73 add_math_entrypoint_object(fabs)
74 add_math_entrypoint_object(fabsf)
75 add_math_entrypoint_object(fabsl)
77 add_math_entrypoint_object(fdim)
78 add_math_entrypoint_object(fdimf)
79 add_math_entrypoint_object(fdiml)
81 add_math_entrypoint_object(floor)
82 add_math_entrypoint_object(floorf)
83 add_math_entrypoint_object(floorl)
85 add_math_entrypoint_object(fma)
86 add_math_entrypoint_object(fmaf)
88 add_math_entrypoint_object(fmax)
89 add_math_entrypoint_object(fmaxf)
90 add_math_entrypoint_object(fmaxl)
92 add_math_entrypoint_object(fmin)
93 add_math_entrypoint_object(fminf)
94 add_math_entrypoint_object(fminl)
96 add_math_entrypoint_object(fmod)
97 add_math_entrypoint_object(fmodf)
99 add_math_entrypoint_object(frexp)
100 add_math_entrypoint_object(frexpf)
101 add_math_entrypoint_object(frexpl)
103 add_math_entrypoint_object(hypot)
104 add_math_entrypoint_object(hypotf)
106 add_math_entrypoint_object(ilogb)
107 add_math_entrypoint_object(ilogbf)
108 add_math_entrypoint_object(ilogbl)
110 add_math_entrypoint_object(ldexp)
111 add_math_entrypoint_object(ldexpf)
112 add_math_entrypoint_object(ldexpl)
114 add_math_entrypoint_object(log10)
115 add_math_entrypoint_object(log10f)
117 add_math_entrypoint_object(log1pf)
119 add_math_entrypoint_object(log2f)
121 add_math_entrypoint_object(logf)
123 add_math_entrypoint_object(logb)
124 add_math_entrypoint_object(logbf)
125 add_math_entrypoint_object(logbl)
127 add_math_entrypoint_object(llrint)
128 add_math_entrypoint_object(llrintf)
129 add_math_entrypoint_object(llrintl)
131 add_math_entrypoint_object(llround)
132 add_math_entrypoint_object(llroundf)
133 add_math_entrypoint_object(llroundl)
135 add_math_entrypoint_object(lrint)
136 add_math_entrypoint_object(lrintf)
137 add_math_entrypoint_object(lrintl)
139 add_math_entrypoint_object(lround)
140 add_math_entrypoint_object(lroundf)
141 add_math_entrypoint_object(lroundl)
143 add_math_entrypoint_object(modf)
144 add_math_entrypoint_object(modff)
145 add_math_entrypoint_object(modfl)
147 add_math_entrypoint_object(nearbyint)
148 add_math_entrypoint_object(nearbyintf)
149 add_math_entrypoint_object(nearbyintl)
151 add_math_entrypoint_object(nextafter)
152 add_math_entrypoint_object(nextafterf)
153 add_math_entrypoint_object(nextafterl)
155 add_math_entrypoint_object(remainder)
156 add_math_entrypoint_object(remainderf)
157 add_math_entrypoint_object(remainderl)
159 add_math_entrypoint_object(remquo)
160 add_math_entrypoint_object(remquof)
161 add_math_entrypoint_object(remquol)
163 add_math_entrypoint_object(rint)
164 add_math_entrypoint_object(rintf)
165 add_math_entrypoint_object(rintl)
167 add_math_entrypoint_object(round)
168 add_math_entrypoint_object(roundf)
169 add_math_entrypoint_object(roundl)
171 add_math_entrypoint_object(scalbn)
172 add_math_entrypoint_object(scalbnf)
173 add_math_entrypoint_object(scalbnl)
175 add_math_entrypoint_object(sincosf)
177 add_math_entrypoint_object(sin)
178 add_math_entrypoint_object(sinf)
179 add_math_entrypoint_object(sinhf)
181 add_math_entrypoint_object(sqrt)
182 add_math_entrypoint_object(sqrtf)
183 add_math_entrypoint_object(sqrtl)
185 add_math_entrypoint_object(tan)
186 add_math_entrypoint_object(tanf)
187 add_math_entrypoint_object(tanhf)
189 add_math_entrypoint_object(trunc)
190 add_math_entrypoint_object(truncf)
191 add_math_entrypoint_object(truncl)