aboutsummaryrefslogtreecommitdiff
path: root/common/math.h
AgeCommit message (Collapse)Author
2012-03-17ALL: Use GCC_ATLEAST().Christoph Mallon
2011-08-19COMMON: intLog2 uses _BitScanReverse on MSVCBertrand Augereau
2011-07-24COMMON: Limited gcc specific intLog2 to gcc 3.4 or newer.Johannes Schickel
Older gcc versions did not include __builtin_clz, which made the PS2 port fail to compile, since it uses 3.2.2.
2011-07-24COMMON: Add an optimized intLog2 implementation for gcc using __builtin_clz.Johannes Schickel
This is done as discussed here: https://github.com/scummvm/scummvm/commit/54f25aa84373715001c56155673fb59cfe44b573
2011-07-24COMMON: Let intLog2 return an int instead of uint32, since it should return ↵Johannes Schickel
-1 for 0.
2011-07-19COMMON: Move cosine/sine tables out of header filesMatthew Hoops
Access is now restricted to using the getSineTable()/getCosineTable() helper functions.
2011-07-19COMMON: Renamed Integer Log2 function from log2 to intLog2.D G Turner
This avoids naming collisions with system libraries on some platforms i.e. DS, DC where the log2 is realised by macro.
2011-07-18COMMON: Fix commentMatthew Hoops
2011-07-18COMMON: Update code from eosMatthew Hoops
2011-07-18COMMON: Remove USE_BINK checks from header filesMatthew Hoops
2011-07-13BUILD: Allow for disabling Bink supportMatthew Hoops
2011-07-03COMMON: Remove unused vector2orientation functionMatthew Hoops
2011-07-02COMMON: Add some simple math utilitiesMatthew Hoops
Based on eos' code