整理代码

This commit is contained in:
蒲爽 2026-09-28 21:33:04 +08:00
commit c7b4e178ec
364 changed files with 59691 additions and 0 deletions

25
util/Math.cpp Normal file
View file

@ -0,0 +1,25 @@
/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "Math.h"
namespace Util
{
/*
*******************************************************************************
* CLASS DEFINE
*******************************************************************************
*/
unsigned Math::alignup(unsigned num, unsigned align)
{
return (((num) + (align)-1) & ~((align)-1));
}
unsigned Math::aligndown(unsigned num, unsigned align)
{
return ((num) & ~((align)-1));
}
}