X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fgen%2Fmplibm.c;h=2151259983a3496e4268120e800317f1f6265497;hb=c58b8e7cb29f954791ffd5bc2d97ddb4d4202d0c;hp=04af0492c338dbfc0b0bee75b8c2bb4a40b54f2a;hpb=ae0f0fe09b7fc9d44d072c3fd08372991d852b1d;p=libc-test diff --git a/src/math/gen/mplibm.c b/src/math/gen/mplibm.c index 04af049..2151259 100644 --- a/src/math/gen/mplibm.c +++ b/src/math/gen/mplibm.c @@ -54,8 +54,15 @@ static int mpl2(struct t *s, long double (*f)(long double, long double)) return 0; } +static double sinpi(double x) { return sin(3.141592653589793238*x); } +int mpsinpi(struct t *t) { return mpd1(t, sinpi); } + static double add(double x, double y) { double z = x + y; return z; } int mpadd(struct t *t) { return mpd2(t, add); } +static double mul(double x, double y) { double z = x * y; return z; } +int mpmul(struct t *t) { return mpd2(t, mul); } +static double div(double x, double y) { double z = x / y; return z; } +int mpdiv(struct t *t) { return mpd2(t, div); } int mpacos(struct t *t) { return mpd1(t, acos); } int mpacosf(struct t *t) { return mpf1(t, acosf); }