ulps: Fix long lines
[mathlib.git] / ulps / gen.h
CommitLineData
4be0a29b 1#ifndef __GEN_H__
2#define __GEN_H__
3
5226af1e
SK
4#include <complex.h>
5
4be0a29b 6struct fentry {
4be0a29b 7 size_t f_narg;
e75639fd 8 const char *f_name;
9 const char *f_namel;
24d04885
SK
10
11 /* Domain validator functions */
4be0a29b 12 union {
4a43ae5a 13 int (*fp1)(long double x);
14 int (*fp2)(long double x, long double y);
4be0a29b 15 } f_u;
5226af1e
SK
16 union {
17 int (*fp1)(long double complex x);
18 int (*fp2)(long double complex x, long double complex y);
19 } f_uc;
24d04885
SK
20
21 /* Computation functions */
22 union {
23 double (*f_ulibm_real)();
24 double complex (*f_ulibm_complex)();
25 } f_ulibm;
26
27 union {
28 long double (*f_ulibml_real)();
29 long double complex (*f_ulibml_complex)();
30 } f_ulibml;
31
4be0a29b 32 int (*f_mpfr)();
5226af1e 33 int (*f_mpc)();
4be0a29b 34};
35
24d04885
SK
36#define f_libm_real f_ulibm.f_ulibm_real
37#define f_libm_complex f_ulibm.f_ulibm_complex
38#define f_libml_real f_ulibml.f_ulibml_real
39#define f_libml_complex f_ulibml.f_ulibml_complex
40
3e0d1ace 41extern const int fsize;
42
da06af21 43const struct fentry *getfunctionbyidx(int idx);
8b236e02 44const struct fentry *getfunctionbyname(const char *fname);
a4873c4d 45void printfunctions(void);
4be0a29b 46
ca3e8900 47#ifdef DEBUG
51b30d33 48#define DPRINTF(x) printf x; fflush(stdout);
ca3e8900
SK
49#else
50#define DPRINTF(x)
51#endif
51b30d33 52
4be0a29b 53#endif /* !__GEN_H__ */