aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/bits.h
blob: 0532a9bd4cb5fd28aa34f5fd26ef84baa8f38e09 (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)