Lines Matching refs:FNC
42 #define TGMACRO(FNC) \ argument
43 TGMACRO_REAL(FNC) \
44 TGMACRO_COMPLEX(c ## FNC)
46 #define TGMACRO_REAL(FNC) \ argument
47 float (FNC ## f)(float x) { n_float++; } \
48 double (FNC)(double x) { n_double++; } \
49 long double (FNC ## l)(long double x) { n_long_double++; }
51 #define TGMACRO_REAL_REAL(FNC) \ argument
52 float (FNC ## f)(float x, float y) { n_float++; } \
53 double (FNC)(double x, double y) { n_double++; } \
55 (FNC ## l)(long double x, long double y) { n_long_double++; }
57 #define TGMACRO_REAL_FIXED_RET(FNC, TYPE) \ argument
58 TYPE (FNC ## f)(float x) { n_float++; } \
59 TYPE (FNC)(double x) { n_double++; } \
60 TYPE (FNC ## l)(long double x) { n_long_double++; }
62 #define TGMACRO_COMPLEX(FNC) \ argument
63 float complex (FNC ## f)(float complex x) { n_float_complex++; }\
64 double complex (FNC)(double complex x) { n_double_complex++; } \
66 (FNC ## l)(long double complex x) { n_long_double_complex++; }
68 #define TGMACRO_COMPLEX_REAL_RET(FNC) \ argument
69 float (FNC ## f)(float complex x) { n_float_complex++; } \
70 double (FNC)(double complex x) { n_double_complex++; } \
72 (FNC ## l)(long double complex x) { n_long_double_complex++; }
183 #define PASS_REAL_ARG_REAL_RET(FNC) PASS_REAL_ARG_REAL_RET_(FNC,) argument
185 #define PASS_REAL_ARG_REAL_RET_(FNC, SUFFIX) \ argument
187 RUN_TEST(FNC(1.l), long double) && \
188 RUN_TEST(FNC(ld), long double) && \
190 RUN_TEST(FNC(1.), double) && \
191 RUN_TEST(FNC(d), double) && \
192 RUN_TEST(FNC(1ull), double) && \
193 RUN_TEST(FNC(ull), double) && \
194 RUN_TEST(FNC(1), double) && \
195 RUN_TEST(FNC(i), double) && \
196 RUN_TEST(FNC((_Bool)0), double) && \
197 RUN_TEST(FNC(b), double) && \
199 RUN_TEST(FNC(1.f), float) && \
200 RUN_TEST(FNC(f), float) && \
203 #define PASS_REAL_ARG_FIXED_RET(FNC, RET) \ argument
205 RUN_TEST(FNC(1.l), RET) && \
206 RUN_TEST(FNC(ld), RET) && \
208 RUN_TEST(FNC(1.), RET) && \
209 RUN_TEST(FNC(d), RET) && \
210 RUN_TEST(FNC(1ull), RET) && \
211 RUN_TEST(FNC(ull), RET) && \
212 RUN_TEST(FNC(1), RET) && \
213 RUN_TEST(FNC(i), RET) && \
214 RUN_TEST(FNC((_Bool)0), RET) && \
215 RUN_TEST(FNC(b), RET) && \
217 RUN_TEST(FNC(1.f), RET) && \
218 RUN_TEST(FNC(f), RET) && \
221 #define PASS_REAL_FIXED_ARG_REAL_RET(FNC, ARG2) \ argument
223 RUN_TEST(FNC(1.l, ARG2), long double) && \
224 RUN_TEST(FNC(ld, ARG2), long double) && \
226 RUN_TEST(FNC(1., ARG2), double) && \
227 RUN_TEST(FNC(d, ARG2), double) && \
228 RUN_TEST(FNC(1ull, ARG2), double) && \
229 RUN_TEST(FNC(ull, ARG2), double) && \
230 RUN_TEST(FNC(1, ARG2), double) && \
231 RUN_TEST(FNC(i, ARG2), double) && \
232 RUN_TEST(FNC((_Bool)0, ARG2), double) && \
233 RUN_TEST(FNC(b, ARG2), double) && \
235 RUN_TEST(FNC(1.f, ARG2), float) && \
236 RUN_TEST(FNC(f, ARG2), float) && \
239 #define PASS_REAL_REAL_ARG_REAL_RET(FNC) \ argument
241 RUN_TEST(FNC(1.l, 1.l), long double) && \
242 RUN_TEST(FNC(1.l, 1.), long double) && \
243 RUN_TEST(FNC(1.l, 1.f), long double) && \
244 RUN_TEST(FNC(1.l, 1), long double) && \
245 RUN_TEST(FNC(1.l, (_Bool)0), long double) && \
246 RUN_TEST(FNC(1.l, ld), long double) && \
247 RUN_TEST(FNC(1., ld), long double) && \
248 RUN_TEST(FNC(1.f, ld), long double) && \
249 RUN_TEST(FNC(1, ld), long double) && \
250 RUN_TEST(FNC((_Bool)0, ld), long double) && \
252 RUN_TEST(FNC(d, 1.), double) && \
253 RUN_TEST(FNC(d, 1.f), double) && \
254 RUN_TEST(FNC(d, 1l), double) && \
255 RUN_TEST(FNC(d, (_Bool)0), double) && \
256 RUN_TEST(FNC(1., 1.), double) && \
257 RUN_TEST(FNC(1.f, 1.), double) && \
258 RUN_TEST(FNC(1l, 1.), double) && \
259 RUN_TEST(FNC((_Bool)0, 1.), double) && \
260 RUN_TEST(FNC(1ull, f), double) && \
261 RUN_TEST(FNC(1.f, ull), double) && \
262 RUN_TEST(FNC(1, 1l), double) && \
263 RUN_TEST(FNC(1u, i), double) && \
264 RUN_TEST(FNC((_Bool)0, 1.f), double) && \
265 RUN_TEST(FNC(1.f, b), double) && \
267 RUN_TEST(FNC(1.f, 1.f), float) && \
268 RUN_TEST(FNC(1.f, 1.f), float) && \
269 RUN_TEST(FNC(f, 1.f), float) && \
270 RUN_TEST(FNC(f, f), float) && \
273 #define PASS_REAL_REAL_FIXED_ARG_REAL_RET(FNC, ARG3) \ argument
275 RUN_TEST(FNC(1.l, 1.l, ARG3), long double) && \
276 RUN_TEST(FNC(1.l, 1., ARG3), long double) && \
277 RUN_TEST(FNC(1.l, 1.f, ARG3), long double) && \
278 RUN_TEST(FNC(1.l, 1, ARG3), long double) && \
279 RUN_TEST(FNC(1.l, (_Bool)0, ARG3), long double) && \
280 RUN_TEST(FNC(1.l, ld, ARG3), long double) && \
281 RUN_TEST(FNC(1., ld, ARG3), long double) && \
282 RUN_TEST(FNC(1.f, ld, ARG3), long double) && \
283 RUN_TEST(FNC(1, ld, ARG3), long double) && \
284 RUN_TEST(FNC((_Bool)0, ld, ARG3), long double) && \
286 RUN_TEST(FNC(d, 1., ARG3), double) && \
287 RUN_TEST(FNC(d, 1.f, ARG3), double) && \
288 RUN_TEST(FNC(d, 1l, ARG3), double) && \
289 RUN_TEST(FNC(d, (_Bool)0, ARG3), double) && \
290 RUN_TEST(FNC(1., 1., ARG3), double) && \
291 RUN_TEST(FNC(1.f, 1., ARG3), double) && \
292 RUN_TEST(FNC(1l, 1., ARG3), double) && \
293 RUN_TEST(FNC((_Bool)0, 1., ARG3), double) && \
294 RUN_TEST(FNC(1ull, f, ARG3), double) && \
295 RUN_TEST(FNC(1.f, ull, ARG3), double) && \
296 RUN_TEST(FNC(1, 1l, ARG3), double) && \
297 RUN_TEST(FNC(1u, i, ARG3), double) && \
298 RUN_TEST(FNC((_Bool)0, 1.f, ARG3), double) && \
299 RUN_TEST(FNC(1.f, b, ARG3), double) && \
301 RUN_TEST(FNC(1.f, 1.f, ARG3), float) && \
302 RUN_TEST(FNC(1.f, 1.f, ARG3), float) && \
303 RUN_TEST(FNC(f, 1.f, ARG3), float) && \
304 RUN_TEST(FNC(f, f, ARG3), float) && \
307 #define PASS_REAL_REAL_REAL_ARG_REAL_RET(FNC) \ argument
309 RUN_TEST(FNC(ld, d, f), long double) && \
310 RUN_TEST(FNC(1, ld, ld), long double) && \
311 RUN_TEST(FNC(1, d, ld), long double) && \
313 RUN_TEST(FNC(1, f, 1.f), double) && \
314 RUN_TEST(FNC(f, d, 1.f), double) && \
315 RUN_TEST(FNC(f, 1.f, 1.), double) && \
317 RUN_TEST(FNC(f, 1.f, f), float) && \
320 #define PASS_REAL_ARG_COMPLEX_RET(FNC) \ argument
322 RUN_TEST(FNC(1.l), long double complex) && \
323 RUN_TEST(FNC(ld), long double complex) && \
325 RUN_TEST(FNC(1.), double complex) && \
326 RUN_TEST(FNC(d), double complex) && \
327 RUN_TEST(FNC(1l), double complex) && \
328 RUN_TEST(FNC(i), double complex) && \
329 RUN_TEST(FNC(b), double complex) && \
331 RUN_TEST(FNC(1.f), float complex) && \
332 RUN_TEST(FNC(f), float complex) && \
335 #define PASS_COMPLEX_ARG_COMPLEX_RET(FNC) \ argument
337 RUN_TEST(FNC(ldc), long double complex) && \
339 RUN_TEST(FNC(dc), double complex) && \
341 RUN_TEST(FNC(fc), float complex) && \
342 RUN_TEST(FNC(I), float complex) && \
345 #define PASS_COMPLEX_ARG_REAL_RET(FNC) \ argument
347 RUN_TEST(FNC(ldc), long double) && \
349 RUN_TEST(FNC(dc), double) && \
351 RUN_TEST(FNC(fc), float) && \
352 RUN_TEST(FNC(I), float) && \
355 #define PASS_COMPLEX_COMPLEX_ARG_COMPLEX_RET(FNC) \ argument
357 RUN_TEST(FNC(ldc, ldc), long double complex) && \
358 RUN_TEST(FNC(ldc, dc), long double complex) && \
359 RUN_TEST(FNC(ldc, fc), long double complex) && \
360 RUN_TEST(FNC(ldc, ld), long double complex) && \
361 RUN_TEST(FNC(ldc, d), long double complex) && \
362 RUN_TEST(FNC(ldc, f), long double complex) && \
363 RUN_TEST(FNC(ldc, i), long double complex) && \
364 RUN_TEST(FNC(dc, ldc), long double complex) && \
365 RUN_TEST(FNC(I, ldc), long double complex) && \
366 RUN_TEST(FNC(1.l, ldc), long double complex) && \
367 RUN_TEST(FNC(1., ldc), long double complex) && \
368 RUN_TEST(FNC(1.f, ldc), long double complex) && \
369 RUN_TEST(FNC(1, ldc), long double complex) && \
370 RUN_TEST(FNC(ld, dc), long double complex) && \
371 RUN_TEST(FNC(ld, fc), long double complex) && \
372 RUN_TEST(FNC(I, 1.l), long double complex) && \
373 RUN_TEST(FNC(dc, 1.l), long double complex) && \
375 RUN_TEST(FNC(dc, dc), double complex) && \
376 RUN_TEST(FNC(dc, fc), double complex) && \
377 RUN_TEST(FNC(dc, d), double complex) && \
378 RUN_TEST(FNC(dc, f), double complex) && \
379 RUN_TEST(FNC(dc, ull), double complex) && \
380 RUN_TEST(FNC(I, dc), double complex) && \
381 RUN_TEST(FNC(1., dc), double complex) && \
382 RUN_TEST(FNC(1, dc), double complex) && \
383 RUN_TEST(FNC(fc, d), double complex) && \
384 RUN_TEST(FNC(1, I), double complex) && \
386 RUN_TEST(FNC(fc, fc), float complex) && \
387 RUN_TEST(FNC(fc, I), float complex) && \
388 RUN_TEST(FNC(1.f, fc), float complex) && \