pikmin2/include/nans.h
Amber Brault 46d0da417c
Metrowerks overhaul (#164)
* 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>
2023-04-22 02:37:22 -04:00

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