MCPcopy Create free account
hub / github.com/doldecomp/mkdd / get_ufloat_1

Method get_ufloat_1

include/JSystem/JMath/JMath.h:217–228  ·  view source on GitHub ↗

from TP decomp

Source from the content-addressed store, hash-verified

215
216 // from TP decomp
217 f32 get_ufloat_1()
218 {
219 // !@bug UB: in C++ it's not legal to read from an union member other
220 // than the last one that was written to.
221 union
222 {
223 f32 f;
224 u32 s;
225 } out;
226 out.s = (this->get() >> 9) | 0x3f800000;
227 return out.f - 1;
228 }
229
230 void setSeed(u32 Seed)
231 {

Callers 9

getRandomU32Method · 0.80
resetMethod · 0.80
initEquipMethod · 0.80
resetMethod · 0.80
initDisappearMethod · 0.80
initEquipMethod · 0.80
effectMethod · 0.80
initSwingVelMethod · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected