Index: src/libchcore/RoundingFunctions.h =================================================================== diff -u -N -rcdc76e1a95383dff63a5254aeb8d37035028512c -re96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3 --- src/libchcore/RoundingFunctions.h (.../RoundingFunctions.h) (revision cdc76e1a95383dff63a5254aeb8d37035028512c) +++ src/libchcore/RoundingFunctions.h (.../RoundingFunctions.h) (revision e96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3) @@ -21,11 +21,10 @@ #include "libchcore.h" -BEGIN_CHCORE_NAMESPACE +namespace chcore +{ + template T RoundUp(T number, T roundValue) { return ((number + roundValue - 1) & ~(roundValue - 1)); } + template T RoundDown(T number, T roundValue) { return (number & ~(roundValue - 1)); } +} -template T RoundUp(T number, T roundValue) { return ((number + roundValue - 1) & ~(roundValue - 1)); } -template T RoundDown(T number, T roundValue) { return (number & ~(roundValue - 1)); } - -END_CHCORE_NAMESPACE - #endif