aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/bits.h
blob: 3915b2f64cbf2d6b9796ba0aabd7116e8e5c3322 (plain)
1
2
3
4
5
6
7
8
9
10
#pragma once

unsigned long& FloatBits(float& f);
unsigned long const& FloatBits(float const& f);
float BitsToFloat(unsigned long i);
bool IsFinite(float f);
unsigned long FloatAbsBits(float f);

#define FLOAT32_NAN_BITS (std::uint32_t)0x7FC00000 // NaN!
#define FLOAT32_NAN BitsToFloat(FLOAT32_NAN_BITS)