prime/include/Kyoto/Math/CMath.hpp
Luke Street 0f25a3c8d4 Migrate s32->int, u32->uint; fix dolphin/types.h
Former-commit-id: 7eb08b6ee832f11971da0cfdc53b5a55b74ac79d
2022-09-05 00:01:22 -04:00

16 lines
267 B
C++

#ifndef _CMATH_HPP
#define _CMATH_HPP
#include "types.h"
class CMath {
public:
static f32 FastCosR(f32 v);
static f32 FastSinR(f32 v);
static inline f32 FastFmod(f32 x, f32 y) {
int v = static_cast<int>(x * (1.f / y));
return x - v * y;
}
};
#endif