blob: ad70f361e7f52ec9af2a7a57cf539b868003dc7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#pragma once
#include <cmath>
#include <cinttypes>
namespace otr_math
{
using std::copysign;
using std::sqrt;
using std::pow;
using std::fabs;
using std::fmin;
using std::fmax;
using std::atan;
using std::atan2;
using std::asin;
using std::acos;
using std::sin;
using std::cos;
using std::tan;
using std::round;
using std::fmod;
using std::uintptr_t;
using std::intptr_t;
using std::int64_t;
using std::int32_t;
using std::uint64_t;
using std::uint32_t;
template <typename T>
static inline constexpr auto signum(T x)
{
return (T() < x) - (x < T());
}
} // ns otr_math
|