#pragma once #include template inline int iround(const t& val) { return int(std::round(val)); } template inline unsigned uround(const t& val) { return std::round(std::fmax(t(0), val)); }