diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-03-07 12:23:29 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-03-07 12:23:29 +0530 |
commit | 82a9811d29c00161c7c8ea7f70e2cc30988e192e (patch) | |
tree | 6cf24e5b5c67827b83c04f1ce12ef1af90680605 /sysdeps/ieee754/dbl-64/mpa.c | |
parent | adbb8027be47b3295367019b2f45863ea3d6c727 (diff) | |
download | glibc-82a9811d29c00161c7c8ea7f70e2cc30988e192e.tar.gz glibc-82a9811d29c00161c7c8ea7f70e2cc30988e192e.tar.xz glibc-82a9811d29c00161c7c8ea7f70e2cc30988e192e.zip |
Use generic mpa.c code for everything except __mul and __sqr
Diffstat (limited to 'sysdeps/ieee754/dbl-64/mpa.c')
-rw-r--r-- | sysdeps/ieee754/dbl-64/mpa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/ieee754/dbl-64/mpa.c b/sysdeps/ieee754/dbl-64/mpa.c index 8fc2626f76..0766476544 100644 --- a/sysdeps/ieee754/dbl-64/mpa.c +++ b/sysdeps/ieee754/dbl-64/mpa.c @@ -611,6 +611,7 @@ __sub (const mp_no *x, const mp_no *y, mp_no *z, int p) } } +#ifndef NO__MUL /* Multiply *X and *Y and store result in *Z. X and Y may overlap but not X and Z or Y and Z. For P in [1, 2, 3], the exact result is truncated to P digits. In case P > 3 the error is bounded by 1.001 ULP. */ @@ -761,7 +762,9 @@ __mul (const mp_no *x, const mp_no *y, mp_no *z, int p) EZ = e; Z[0] = X[0] * Y[0]; } +#endif +#ifndef NO__SQR /* Square *X and store result in *Y. X and Y may not overlap. For P in [1, 2, 3], the exact result is truncated to P digits. In case P > 3 the error is bounded by 1.001 ULP. This is a faster special case of @@ -862,6 +865,7 @@ __sqr (const mp_no *x, mp_no *y, int p) EY = e; } +#endif /* Invert *X and store in *Y. Relative error bound: - For P = 2: 1.001 * R ^ (1 - P) |