mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
These funcs are already defined in math_util.h, so why are they redefined in this file? In any case, it seems to break 2010/2012 compilation to have those in there..
This commit is contained in:
parent
ac53228d52
commit
0ce45848b5
1 changed files with 0 additions and 20 deletions
|
@ -50,26 +50,6 @@
|
|||
#define HI currentMIPS->hi
|
||||
#define LO currentMIPS->lo
|
||||
|
||||
|
||||
inline int is_even(float d) {
|
||||
float int_part;
|
||||
modff(d / 2.0f, &int_part);
|
||||
return 2.0f * int_part == d;
|
||||
}
|
||||
|
||||
// Rounds *.5 to closest even number
|
||||
float round_ieee_754(float d) {
|
||||
float i = floorf(d);
|
||||
d -= i;
|
||||
if(d < 0.5f)
|
||||
return i;
|
||||
if(d > 0.5f)
|
||||
return i + 1.0f;
|
||||
if(is_even(i))
|
||||
return i;
|
||||
return i + 1.0f;
|
||||
}
|
||||
|
||||
static inline void DelayBranchTo(u32 where)
|
||||
{
|
||||
PC += 4;
|
||||
|
|
Loading…
Add table
Reference in a new issue