summaryrefslogtreecommitdiff
path: root/Source/Core/Common/MathUtil.h
AgeCommit message (Collapse)Author
2015-08-21MathUtil: Remove IsNAN and IsINFLioncash
These aren't necessary, since the stdlib provides equivalents.
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-03-04Fix clamping for rectangles.magumagu
Clamping a rectangle correctly requires fully clamping all four coordinates in the general case. This should fix issue 6923, sort of; at least, it fixes the part where a rectangle ends up with a nonsensical height after being clamped.
2014-11-23VertexShaderManager: Compute stereoscopy projection matrices.Jules Blok
2014-09-10Merge pull request #1027 from rohit-n/change-includeRyan Houdek
Include CommonTypes.h instead of Common.h.
2014-09-08Rename Log2 and add IsPow2 to MathUtils for future useFiora
Also remove unused pow2/pow2f functions.
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
2014-09-05Revert "JIT64: optimize CA calculations"Fiora
2014-09-05Merge pull request #852 from FioraAeterna/optimizecacomex
JIT64: optimize CA calculations
2014-09-05Merge pull request #947 from FioraAeterna/rsqrtecomex
JIT: implement frsqte
2014-09-03JIT: implement fresFiora
Mostly a straightforward translation of the interpreter code, with a few tricksy optimizations and fallbacks for rare paths.
2014-09-03JIT: implement frsqrteFiora
Mostly a straightforward translation of the interpreter code, with a few tricksy optimizations and fallbacks for rare paths.
2014-09-03Common: Remove unnecessary define check in Log2lioncash
2014-09-01Rename Log2 and add IsPow2 to MathUtils for future useFiora
Also remove unused pow2/pow2f functions.
2014-07-15Fix incorrect clamping in SWRenderer.Scott Mansell
A previous PR changed a whole lot of min/maxes to std::min/std::max but made a mistake here and used a templated min which cast it's arguments to unsigned instead of casting return value. This resulted in glitchy artifacts in bright areas (See issue 7439) I rewrote the code to use a proper clamping function so it's cleaner to read.
2014-03-24MathUtil: add constructors to IntFloat/IntDoubleTillmann Karras
2014-03-09MathUtil: fix IsQNAN()Tillmann Karras
The constants were one nibble too short and the lower 51 bits don't actually have to be zero.
2014-03-04Make our architecture defines less stupid.Ryan Houdek
Our defines were never clear between what meant 64bit or x86_64 This makes a clear cut between bitness and architecture. This commit also has the side effect of bringing up aarch64 compiling support.
2014-02-26MathUtil: Change Log2 return value to intdegasus
Log2(u64) can't be bigger than 63, so there is no need in forcing a 64 bit value. So just using a common int seems more natural.
2014-02-22Make Common/ mostly IWYU clean (and fix errors in rest of the project ↵Pierre Bourdon
detected by this change).
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-10Replace all include guard ifdefs with "#pragma once"lioncash
2014-02-09Clean up some struct indentationsLioncash
Also cleaned up the indentations of some variable declarations.
2014-02-05Change the modified parameter in the Clamp function to be a pointer.Lioncash
Makes it easier to identify the one being modified.
2014-02-04Introduce a generic clamp function to clean up some similarly duplicated code.Lioncash
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre