1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-08 11:05:28 +01:00

Irrlicht: remove some dead code

This commit is contained in:
sfan5
2025-11-03 14:43:52 +01:00
parent 2368126d0a
commit 8042b5512f
22 changed files with 9 additions and 452 deletions

View File

@@ -312,13 +312,6 @@ typedef union
f32 f;
} inttofloat;
#define F32_AS_S32(f) (*((s32 *)&(f)))
#define F32_AS_U32(f) (*((u32 *)&(f)))
#define F32_AS_U32_POINTER(f) (((u32 *)&(f)))
#define F32_VALUE_0 0x00000000
#define F32_VALUE_1 0x3f800000
//! code is taken from IceFPU
//! Integer representation of a floating-point value.
inline u32 IR(f32 x)
@@ -420,12 +413,6 @@ REALINLINE f64 reciprocal(const f64 f)
return 1.0 / f;
}
// calculate: 1 / x, low precision allowed
REALINLINE f32 reciprocal_approxim(const f32 f)
{
return 1.f / f;
}
REALINLINE s32 floor32(f32 x)
{
return (s32)floorf(x);
@@ -442,16 +429,6 @@ REALINLINE s32 round32(f32 x)
return (s32)round_(x);
}
inline f32 f32_max3(const f32 a, const f32 b, const f32 c)
{
return a > b ? (a > c ? a : c) : (b > c ? b : c);
}
inline f32 f32_min3(const f32 a, const f32 b, const f32 c)
{
return a < b ? (a < c ? a : c) : (b < c ? b : c);
}
inline f32 fract(f32 x)
{
return x - floorf(x);