From 275e2ca033a880fe959e7eb4e83268a70318ba57 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Tue, 14 Oct 2025 12:57:38 +0000 Subject: Initial commit --- bits.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bits.h (limited to 'bits.h') diff --git a/bits.h b/bits.h new file mode 100644 index 0000000..187e482 --- /dev/null +++ b/bits.h @@ -0,0 +1,24 @@ +int bitAnd(int, int); +int test_bitAnd(int, int); +int bitXor(int, int); // 保留 +int test_bitXor(int, int); // 保留 +int logtwo(int); // 保留 +int test_logtwo(int); // 保留 +int samesign(int, int); +int test_samesign(int, int); +int byteSwap(int, int, int); // 保留 +int test_byteSwap(int, int, int); // 保留 +int logicalShift(int, int); // 保留 +int test_logicalShift(int, int); // 保留 +unsigned float_i2f(int); // 保留 +unsigned test_float_i2f(int); // 保留 +int leftBitCount(int); // 保留 +int test_leftBitCount(int); // 保留 +int float64_f2i(unsigned, unsigned); +int test_float64_f2i(unsigned, unsigned); +unsigned reverse(unsigned); +unsigned test_reverse(unsigned); +unsigned floatScale2(unsigned); +unsigned test_floatScale2(unsigned); +unsigned floatPower2(int); +unsigned test_floatPower2(int); -- cgit v1.2.3