mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Added more strideAlign test.
This commit is contained in:
@@ -19,6 +19,13 @@ TEST_CASE("StrideAlign")
|
||||
{
|
||||
REQUIRE(48 == bx::strideAlign16(ii+1, 12) );
|
||||
}
|
||||
|
||||
uint32_t offset = 11;
|
||||
offset = bx::strideAlign(offset, 32);
|
||||
REQUIRE(offset == 32);
|
||||
|
||||
offset = bx::strideAlign(offset, 24);
|
||||
REQUIRE(offset == 48);
|
||||
}
|
||||
|
||||
TEST_CASE("uint32_cnt")
|
||||
|
||||
Reference in New Issue
Block a user