1
0

refactor: migrate rust-like ops.

- migrate rust-like ops.
- migrate testbench for them but not finished.
This commit is contained in:
2025-08-05 13:53:59 +08:00
parent 27baf2a080
commit fcac886f07
8 changed files with 1090 additions and 0 deletions

13
testbench/yycc/num/op.cpp Normal file
View File

@ -0,0 +1,13 @@
#include <gtest/gtest.h>
#include <yycc.hpp>
#include <yycc/num/op.hpp>
#define OP ::yycc::num::op
namespace yycctest::num::op {
TEST(NumOp, DivCeil) {
EXPECT_EQ(OP::div_ceil<uint32_t>(7, 4), UINT32_C(2));
}
}