diff --git a/rpp/impl/math.cpp b/rpp/impl/math.cpp index f99e193..76ea988 100644 --- a/rpp/impl/math.cpp +++ b/rpp/impl/math.cpp @@ -63,6 +63,12 @@ namespace rpp::Math { [[nodiscard]] f64 pow(f64 x, f64 y) noexcept { return ::pow(x, y); } +[[nodiscard]] f32 exp(f32 x) noexcept { + return ::expf(x); +} +[[nodiscard]] f64 exp(f64 x) noexcept { + return ::exp(x); +} [[nodiscard]] f32 floor(f32 v) noexcept { return ::floorf(v); } diff --git a/rpp/math.h b/rpp/math.h index 3f3b7ca..24f550f 100644 --- a/rpp/math.h +++ b/rpp/math.h @@ -91,6 +91,8 @@ template [[nodiscard]] f64 hypot(f64 x, f64 y) noexcept; [[nodiscard]] f32 pow(f32 x, f32 y) noexcept; [[nodiscard]] f64 pow(f64 x, f64 y) noexcept; +[[nodiscard]] f32 exp(f32 x) noexcept; +[[nodiscard]] f64 exp(f64 x) noexcept; [[nodiscard]] f32 floor(f32 v) noexcept; [[nodiscard]] f64 floor(f64 v) noexcept; [[nodiscard]] f32 ceil(f32 v) noexcept;