CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
GMath.h
Go to the documentation of this file.
1#pragma once
2
3namespace RE
4{
5 constexpr double GFC_MATH_LN2 = 0.69314718055994530942;
6
7 constexpr std::int32_t gfchop(float a_val)
8 {
9 return static_cast<std::int32_t>(a_val);
10 }
11
12 inline float glog2f(float a_val)
13 {
14 return std::logf(a_val) / static_cast<float>(GFC_MATH_LN2);
15 }
16}
Definition: AbsorbEffect.h:6
constexpr std::int32_t gfchop(float a_val)
Definition: GMath.h:7
constexpr double GFC_MATH_LN2
Definition: GMath.h:5
float glog2f(float a_val)
Definition: GMath.h:12