mirror of
https://github.com/projectPiki/pikmin2.git
synced 2025-02-26 08:40:02 +00:00

* Metrowerks overhaul -Make MSL_C match under inline deferred -Overhaul metrowerks header files * repair file-end newlines * formatting clang format is happy now. some questionable formatting choices, especially strtoul.h * fix two ending newlines with extensionless files * More formatting * Match alloc.c * Match mem_funcs.c * Fix makefile * Make Runtime and TRK match under deferred * hopefully fix the configure script --------- Co-authored-by: EpochFlame <jupiterror@gmail.com>
26 lines
467 B
C++
26 lines
467 B
C++
#ifndef _NANS_H
|
|
#define _NANS_H
|
|
|
|
#include "types.h"
|
|
#include "math.h"
|
|
|
|
// #include "Dolphin/int.h"
|
|
namespace Game {
|
|
namespace P2JST {
|
|
struct _u32FakeMatch {
|
|
inline _u32FakeMatch(u32 v)
|
|
: a(v)
|
|
{
|
|
}
|
|
u32 a;
|
|
};
|
|
// static u32 gu32NAN = -1;
|
|
static _u32FakeMatch gu32NAN_(-1);
|
|
// static f32 gfNAN = *reinterpret_cast<const f32*>(&__float_nan);
|
|
static f32 gfNAN_ = NAN;
|
|
const f32 govNAN_[3] = { NAN, gfNAN_, NAN };
|
|
} // namespace P2JST
|
|
} // namespace Game
|
|
|
|
#endif
|