dreamcast/float_uint32.h
Zack Buhman 481a0cb0dc move maple definitions to a new maple/ directory
maple.cpp now uses the new maple_bus_commands.h
2023-12-09 16:38:57 +08:00

11 lines
221 B
C++

#pragma once
#include <cstdint>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
constexpr uint32_t _i(float f) {
return *(reinterpret_cast<uint32_t *>(&f));
}
#pragma GCC diagnostic pop