diff options
Diffstat (limited to 'libc/utils')
-rw-r--r-- | libc/utils/MPFRWrapper/MPFRUtils.cpp | 6 | ||||
-rw-r--r-- | libc/utils/MPFRWrapper/MPFRUtils.h | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/libc/utils/MPFRWrapper/MPFRUtils.cpp b/libc/utils/MPFRWrapper/MPFRUtils.cpp index fe84c38..74c2f76 100644 --- a/libc/utils/MPFRWrapper/MPFRUtils.cpp +++ b/libc/utils/MPFRWrapper/MPFRUtils.cpp @@ -95,6 +95,12 @@ public: case OP_Sin: mpfr_sin(value, mpfrInput.value, MPFR_RNDN); break; + case OP_Exp: + mpfr_exp(value, mpfrInput.value, MPFR_RNDN); + break; + case OP_Exp2: + mpfr_exp2(value, mpfrInput.value, MPFR_RNDN); + break; } } diff --git a/libc/utils/MPFRWrapper/MPFRUtils.h b/libc/utils/MPFRWrapper/MPFRUtils.h index f94a146..f6660f2 100644 --- a/libc/utils/MPFRWrapper/MPFRUtils.h +++ b/libc/utils/MPFRWrapper/MPFRUtils.h @@ -39,11 +39,7 @@ struct Tolerance { uint32_t bits; }; -enum Operation { - OP_Abs, - OP_Cos, - OP_Sin, -}; +enum Operation { OP_Abs, OP_Cos, OP_Sin, OP_Exp, OP_Exp2 }; namespace internal { |