summaryrefslogtreecommitdiff
path: root/src/macros.h
AgeCommit message (Collapse)Author
2007-11-17(svn r11454) -Fix: the CHANCE16 functions were biased; a 32768 in 65536 ↵rubidium
chance was really a 32769 in 65536 chance.
2007-11-10(svn r11401) -Fix [FS#1391]: make all min functions do exactly the same ↵rubidium
instead of branching on either < or <=.
2007-11-07(svn r11390) -Fix r11387: AB() was wrong (spotted by Rafal Rzepecki, patch ↵truelight
by skidd13)
2007-11-06(svn r11387) -Codechange: changed many macros.h #defines to static inline ↵truelight
functions (patch by skidd13, with a big tnx to SmatZ for profiling!)
2007-11-04(svn r11383) -Codechange: fixed all the mess around KillFirstBit (tnx to ↵truelight
Rubidium and skidd13)
2007-11-04(svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer ↵truelight
a macro (skidd13)
2007-11-04(svn r11379) -Fix r11378: KillFirstBit2x64 accepts and returns unsigned ↵truelight
variables, not signed, so enforce that a bit
2007-11-04(svn r11378) -Codechange: optimize KillFirstBit2x64 (skidd13)truelight
2007-11-04(svn r11377) -Codechange: some more strictness in macros.h (skidd13)truelight
2007-11-02(svn r11369) -Codechange [FS#1390]: changes some int to int8 in macros.h, as ↵truelight
they describe a bit-position, which fits perfectly in an int8 (max 64) (skidd13) -Codechange [FS#1390]: added consts in macros.h functions, so compilers can optimise better (skidd13) -Codechange [FS#1390]: remove HAS_SINGLE_BIT, as COUNTBITS does the same (skidd13)
2007-09-23(svn r11149) -Fix [FS#1225]: Draw building stages for new house ground sprites.maedhros
2007-09-01(svn r11031) -Codechange: reduce the amount of duplication of bit counting ↵rubidium
functions. Based on patches by skidd13, SmatZ and Belugas.
2007-07-25(svn r10689) -Documentation [FS#1057]: lots of function documentation ↵rubidium
written by Progman.
2007-06-21(svn r10246) -Fix (r10297): some forgotten money conversions and truncation ↵rubidium
issues. Thanks to benc for providing the patch.
2007-06-19(svn r10212) -Fix [FS#723]: money overflow bugs in many locations.rubidium
2007-04-18(svn r9672) -Cleanup: lots of coding style fixes around operands.rubidium
2007-03-03(svn r8987) -Cleanup: doxygen changes. Again. Mostly (still) @files missing ↵belugas
tags and (more than just) a few comments style.
2007-02-22(svn r8847) -Fixtron
There is not much point in hiding a normal 64bit multiplication in a function, so do not do it
2007-02-22(svn r8846) -Fixtron
Remove confusing superfluous parentheses
2007-02-22(svn r8845) -Fixtron
Remove pointless and out of context comment
2007-02-22(svn r8841) -Fixtron
Remove {,u}intswap() and replace them by Swap()
2007-02-19(svn r8818) -Codechange: remove the #ifdef _cplusplus remnants.rubidium
2007-02-14(svn r8732) -Codechange/Fix(r8705): Turned the bit-handling macros into ↵celestar
template functions. Fixes a problem with MSVC and 64-bit shifts.
2007-02-14(svn r8727) -Cleanup (r8366): Remove BIGMULSS64 since it isn't used any more.maedhros
2007-01-24(svn r8398) -Cleanup: Remove WATCOM crud from strgen and map.h include from ↵Darkvater
macros.h as it is no longer needed.
2007-01-14(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit ↵peter1138
values. This lets us increase the sprite width from 14 to up to 29 bits, effectively nulling the old sprite limit. Table changes in next commit.
2007-01-11(svn r8061) -Fix r8055: obj-c can't handle templatesbjarni
We will need to figure out a nicer solution for this, but now OSX compiles again
2007-01-11(svn r8057) -Codechange: Declare the "new" max template as static line.celestar
2007-01-11(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some ↵celestar
were not used anyway) and replace them by our SwapT implementation
2007-01-11(svn r8055) -Codechange: Replace the different max, dmax, maxu whatever ↵celestar
macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().
2007-01-10(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, ↵rubidium
stillunknown and pv2b.
2007-01-02(svn r7759) -Merge: makefile rewrite. This merge features:rubidium
- A proper ./configure, so everything needs to be configured only once, not for every make. - Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies. - A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC. - Proper support for OSX universal binaries. - Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files. - Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files. Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.