aboutsummaryrefslogtreecommitdiff
path: root/bits.h
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2025-09-24 13:50:55 +0800
committerRichard Qin <richard.qin.x@gmail.com>2025-09-24 13:50:55 +0800
commit87f0114dd8d2cf355c4e631ab089ddd75abdcc0c (patch)
treeddb6753774ee91f090f59a89adf7e21f780dc2ad /bits.h
downloaddatalab2026-87f0114dd8d2cf355c4e631ab089ddd75abdcc0c.tar.gz
datalab2026-87f0114dd8d2cf355c4e631ab089ddd75abdcc0c.tar.xz
Initial commit: Add starter code for Datalab
Diffstat (limited to 'bits.h')
-rw-r--r--bits.h24
1 files changed, 24 insertions, 0 deletions
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);