Age | Commit message (Collapse) | Author |
|
This should have no effect on common/math.h as scummsys is included at
the top anyway, but this will fix compilation on some toolchains when
strict ANSI language compliance is enabled i.e. -std=c++11, rather than
-std=gnu11.
This causes an issue as a side effect is to set a guard which disables
various non-standard defines in the system headers i.e. the M_PI and
M_SQRT1_2 constant definitions in the MinGW x86_64 toolchain on
buildbot.
By moving this into scummsys.h after the point of system math.h
inclusion, we can ensure that M_PI etc. are always present.
|
|
|
|
|
|
Older gcc versions did not include __builtin_clz, which made the PS2 port
fail to compile, since it uses 3.2.2.
|
|
This is done as discussed here:
https://github.com/scummvm/scummvm/commit/54f25aa84373715001c56155673fb59cfe44b573
|
|
-1 for 0.
|
|
Access is now restricted to using the getSineTable()/getCosineTable() helper functions.
|
|
This avoids naming collisions with system libraries on some platforms
i.e. DS, DC where the log2 is realised by macro.
|
|
|
|
|
|
|
|
|
|
|
|
Based on eos' code
|