mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-26 15:44:51 +01:00
8d26863a51
* FloatToInt() should now round correctly ot nearest, even for negative numbers * Log2() now calls log2f() instead of log10()*3.321 - no idea what the previous code was about, I doubt it's faster (and the ASM code uses something like log2, too). * FastLog2() (for integers) now uses __builtin_clz() when building with GCC/clang - the resulting ASM should be pretty similar to the inline ASM below. I wonder why that function takes signed ints, log2(-1) in reality is an irrational number (but the function returns 31).. Also, both the inline ASM and my version return 0 for Log2(0), but INT_MIN would be closer to the truth * commented out FastMaxLog2(), it's unused. * implemented _rotl() using a fast(er) trick from http://blog.regehr.org/archives/1063 |
||
---|---|---|
.. | ||
AABBox.h | ||
Clipping.inl | ||
FixInt.h | ||
Float.cpp | ||
Float.h | ||
Functions.cpp | ||
Functions.h | ||
Geometry_DOUBLE.cpp | ||
Geometry.cpp | ||
Geometry.h | ||
Geometry.inl | ||
Matrix.h | ||
OBBox.h | ||
Object3D_CSG.cpp | ||
Object3D_IO.cpp | ||
Object3D.cpp | ||
Object3D.h | ||
ObjectSector.cpp | ||
Placement.cpp | ||
Placement.h | ||
Plane.h | ||
Projection_DOUBLE.h | ||
Projection_Isometric.cpp | ||
Projection_Parallel.cpp | ||
Projection_Perspective.cpp | ||
Projection_Simple_DOUBLE.cpp | ||
Projection_Simple.cpp | ||
Projection.cpp | ||
Projection.h | ||
Quaternion.h | ||
TextureMapping.cpp | ||
TextureMapping.h | ||
Vector.h |