summaryrefslogtreecommitdiff
path: root/src/core/overflowsafe_type.hpp
AgeCommit message (Collapse)Author
2021-07-20Codechange: Make OverflowSafeInt constexprCharles Pigott
2021-07-20Codechange: Remove (unused) ability to specify min/max of OverflowSafeIntCharles Pigott
2021-07-20Codechange: Use GCC/clang builtins for overflow safety when supportedCharles Pigott
2021-07-20Fix: OverflowSafeInt could underflowCharles Pigott
Notably, a company with an extremely negative amount of money would suddenly become very rich
2021-07-20Fix: OverflowSafeInt negation not handling INT64_MINCharles Pigott
INT64_MIN negated is above INT64_MAX, and would overflow. Instead, when negating INT64_MIN make it INT64_MAX. This does mean that -(-(INT64_MIN)) != INT64_MIN.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2014-07-12(svn r26685) -Fix: Tighten parameter bound checks on GSCargoMonitor ↵alberth
functions, and return -1 on out-of-bound parameters.
2014-06-17(svn r26651) -Fix: make sure an abs is used that supports int64 when using ↵rubidium
abs on those variables
2012-12-01(svn r24776) -Doc: Typo fixes, additions, and additional dots collected from ↵alberth
various sources (including Eagle_rainbow, MinchinWeb)
2011-12-20(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the ↵truebrain
others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
2011-01-22(svn r21890) -Cleanup: remove some unneeded includesrubidium
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-04-23(svn r16130) -Fix [FS#2855]: the overflowsafe type didn't like dividing by ↵rubidium
int64 larger than MAX_INT32 causing division by negative numbers and small anomolies when drawing graphs.
2008-04-24(svn r12873) -Fix [FS#1946]: MSVC is whining because it doesn't understand ↵rubidium
that bytes should be cast to ints.
2007-12-21(svn r11674) -Codechange: refactor some functions out of macros.h into more ↵rubidium
logical locations.
2007-12-21(svn r11673) -Codechange: move the overflow safe type to a separate file.rubidium