summaryrefslogtreecommitdiffstats
path: root/src/util/math.h
AgeCommit message (Collapse)Author
2019-01-20Try to fix build on Windows and macOSNino Miškić-Pletenac
2019-01-18Try to satisfy CodeFactor and address some review commentsNino Miškić-Pletenac
2018-05-03Merge commit '833e2ce7caac14073c32a251d02cadf7b585a4b2' into silencedetectionNino Miškić-Pletenac
2018-05-01Misc. typosluz.paz
Fixes found via `codespell`
2018-04-06Typo fixes luzpaz
+ User facing typos + trivial source comment typos + superflous double whitespace issues + found redundant comment typo Found using `codespell -q 3 --skip="./build/wix/Localization,./res/translations,./lib" -I ../mixxx-whitelist.txt` where the contents of the whitelist were: ``` iff freee substract ```
2018-02-10Merge commit 'd2513a6ed996c81def0618a97d3059dfeca02f75' into silencedetectionNino Miškić-Pletenac
2017-10-08Removed fixed -6 db send gain offset, make default send and feedback -3 db ↵Daniel Schürmann
instead for a netural default echo
2017-09-28Remove casting in roundToFractionDaniel Schürmann
2017-06-03Make AutoDJ use start/end cue pointsNino Miškić-Pletenac
2017-05-28make roundToFraction round to nearest instead of clamp downbe_
2017-05-16round synced echo time to 1/4 beatsbe_
2017-01-21Delete workarounds for Visual Studio < 2015Uwe Klotz
2016-06-02Include both cmath and math.h to fix compiling on Mac OSDaniel Schürmann
2016-05-31Replace #include <cmath> by <math.h> to fix a compile error using the gcc ↵Daniel Schürmann
6.1.1 header
2015-12-30Fix include order issues for math.h on Windows.RJ Ryan
2015-12-12restore #pragma intrinsic(fabs)Daniel Schürmann
2015-12-12Introduced a wrapper arround the fpclassify functions.Daniel Schürmann
This is compiled without optimization and allows to use the functions from optimized code Fixes Bug #1524561
2014-12-17Remove math_clamp_unsafe / math_clamp_safe.RJ Ryan
Use DEBUG_ASSERT to check validity of bounds.
2014-12-03Replace bit-twiddling hacks with a portable solution.RJ Ryan
2014-11-18Merge pull request #390 from uklotzde/math_clamp_variantsRJ Ryan
New math_clamp() variants
2014-11-18Code fascism.RJ Ryan
* Fix compiler warnings in non-3rd-party code. * Add some missing const-references. * Eliminate cases of "if(" "( ... )" and "for(".
2014-11-17Replace obsolete commentUwe Klotz
2014-11-17Improve math_clamp_safe() by not changing the value on invalid boundsUwe Klotz
..and reorder parameters in the warning message to reflect their order in the function definition.
2014-11-17Rename math_clamp_fast() to math_clamp_unsafe()Uwe Klotz
2014-11-17math_clamp_safe() should always print a warning upon invalid boundsUwe Klotz
2014-11-17Provide both safe (default) and fast variants of math_clamp()Uwe Klotz
2014-11-15Some fixes to SampleUtil changes:RJ Ryan
* Don't use Q_ASSERT since it "crashes" Mixxx from the user perspective. * Don't use std::transform. * Guard math_clamp warnings on developer mode.
2014-11-15Optimize and comment math_clamp()Uwe Klotz
2014-11-15Use pass-by-value for math typesUwe Klotz
2014-09-16Only define round on __WINDOWS__.RJ Ryan
Accidentally broke this in 214430.
2014-09-16Condition round definition on _MSC_VER < 1800 since MSVC 2013 includes C99 ↵RJ Ryan
support.
2014-07-16Warn, don't crash, if math_clamp is used badlyOwen Williams
2014-07-01Debug assert if math_clamp is used incorrectlyOwen Williams
2014-05-31Fix broken seek when playhead is past a loop when the loop is enabled.Owen Williams
2014-04-27added ratio2db() and db2ratio()Daniel Schürmann
2014-04-25fix windows buildMax Linke
2014-04-25Move "#pragma intrinsic(fabs)" calls to util/math.h.RJ Ryan
2014-04-25Fix std=c++0x issue where 'using std::isnan;' collides with the new ↵RJ Ryan
global-namespace version in c++11.
2014-04-25Fix narrowing-conversion issues by using std::fabs instead of fabs.RJ Ryan
2014-04-25Reword comment.RJ Ryan
2014-04-25Refactor use of math and other headers across the codebase.RJ Ryan
* Delete mathstuff.h and defs.h. * Move typedefs into util/types.h. * Move definitions into util/defs.h. * Use std::min and std::max for math_min and math_max. * Replace math_clamp with a template function to prevent repeated sub-expressions. * Add a Result enum for SoundSource::open() and SoundSource::parseHeader(). * Misc. other header-related cleanups.