You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Framework
Tommy Walton 7de6bc5b23
Add RoundUpToMultiple and DivideAndRoundUp functions to MathUtils.h (#6989)
* Add RoundUpToMultiple and DivideAndRoundUp functions to MathUtils.h

Signed-off-by: Tommy Walton <waltont@amazon.com>

* Rename DivideByMultiple2 back to DivideByMultiple, now that I've confirmed it's not in use in the codebase. RHI::DivideByMultiple can be fully deprecated in favor of AZ::DivideAndRoundUp at a later date, once the deprecation strategy has been finalized.

Signed-off-by: Tommy Walton <waltont@amazon.com>

* Update based on PR feedback

Signed-off-by: Tommy Walton <waltont@amazon.com>

* Switched from std::numeric_limits to AZStd::numeric_limits and updated the header to indicate it works for non-power of two alignments, but that SizeAlignUp is more efficient if the alignment is a power of 2

Signed-off-by: Tommy Walton <waltont@amazon.com>

* Added missing arguments to the assert, and a missing namespace and include that failed to compile on non-unity builds

Signed-off-by: Tommy Walton <waltont@amazon.com>
4 years ago
..
AtomCore Updated all array_view uses with the C++20 span. (#7157) 4 years ago
AzAndroid/java/com/amazon The default android platform settings refer to lumberyard #3881 (#7073) 4 years ago
AzCore Add RoundUpToMultiple and DivideAndRoundUp functions to MathUtils.h (#6989) 4 years ago
AzFramework Updated Launching of Lua Editor to supply the project-path (#7706) 4 years ago
AzGameFramework Update how Project Filepaths are calculated when not supplied via command line (#5194) 4 years ago
AzManipulatorTestFramework Merge branch 'development' into math_string_converters 4 years ago
AzNetworking Add RoundUpToMultiple and DivideAndRoundUp functions to MathUtils.h (#6989) 4 years ago
AzQtComponents Move platform-specific variable to be inside a platform-specific `#ifdef` 4 years ago
AzTest gtest_repeat crashes (#7645) 4 years ago
AzToolsFramework Updated Launching of Lua Editor to supply the project-path (#7706) 4 years ago
GFxFramework More fixes 5 years ago
GridMate Add RoundUpToMultiple and DivideAndRoundUp functions to MathUtils.h (#6989) 4 years ago
CMakeLists.txt Remove crcfix (#3294) 5 years ago