1 [PATCH] uClibc can be (and by default is) configured without bessel functions
3 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
5 umath.c | 10 ++++++++++
6 1 file changed, 10 insertions(+)
9 ===================================================================
10 --- joe-3.7.orig/umath.c
16 +/* uClibc can be configured without bessel functions */
17 +#include <features.h>
18 +#if defined (__UCLIBC__) && !defined(__DO_XSI_MATH__)
26 double m_fabs(double n) { return fabs(n); }
27 double m_erf(double n) { return erf(n); }
28 double m_erfc(double n) { return erfc(n); }
30 double m_j0(double n) { return j0(n); }
31 double m_j1(double n) { return j1(n); }
32 double m_y0(double n) { return y0(n); }
33 double m_y1(double n) { return y1(n); }
36 double calc(BW *bw, unsigned char *s)
39 v = get(USTR "abs"); v->func = m_fabs;
40 v = get(USTR "erf"); v->func = m_erf;
41 v = get(USTR "erfc"); v->func = m_erfc;
43 v = get(USTR "j0"); v->func = m_j0;
44 v = get(USTR "j1"); v->func = m_j1;
45 v = get(USTR "y0"); v->func = m_y0;
46 v = get(USTR "y1"); v->func = m_y1;