Browse Source

math: add lol::cbrt as a direct alias to std::cbrt.

undefined
Sam Hocevar 9 years ago
parent
commit
d9b37a0c8d
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/lol/math/functions.h

+ 3
- 0
src/lol/math/functions.h View File

@@ -35,6 +35,9 @@ namespace lol
static inline double sqrt(double const &x) { return std::sqrt(x); }
static inline float sqrt(float const &x) { return std::sqrt(x); }

static inline double cbrt(double const &x) { return std::cbrt(x); }
static inline float cbrt(float const &x) { return std::cbrt(x); }

static inline double exp(double const &x) { return std::exp(x); }
static inline float exp(float const &x) { return std::exp(x); }



Loading…
Cancel
Save