test: remove chinses commets

This commit is contained in:
Haolan
2025-09-10 17:05:38 +08:00
parent c50395b2b9
commit dc59333657
2 changed files with 2 additions and 4 deletions

View File

@@ -140,7 +140,6 @@ func strerror_r(errnum c.Int, buf *c.Char, buflen c.SizeT) c.Int
//go:linkname strverscmp C.strverscmp //go:linkname strverscmp C.strverscmp
func strverscmp(s1, s2 *c.Char) c.Int func strverscmp(s1, s2 *c.Char) c.Int
// 内存分配函数
// //
//go:linkname malloc C.malloc //go:linkname malloc C.malloc
func malloc(size c.SizeT) unsafe.Pointer func malloc(size c.SizeT) unsafe.Pointer
@@ -190,7 +189,6 @@ func malloc_info(options c.Int, stream c.FilePtr) c.Int
//go:linkname mallopt C.mallopt //go:linkname mallopt C.mallopt
func mallopt(param, value c.Int) c.Int func mallopt(param, value c.Int) c.Int
// 标准I/O函数
// //
//go:linkname fopen C.fopen //go:linkname fopen C.fopen
func fopen(pathname, mode *c.Char) c.FilePtr func fopen(pathname, mode *c.Char) c.FilePtr

View File

@@ -256,7 +256,7 @@ func testDivisionFunctions() {
// Test udivdi3 - unsigned 64-bit division // Test udivdi3 - unsigned 64-bit division
assertEqualUint64("udivdi3", udivdi3(100, 5), 20) assertEqualUint64("udivdi3", udivdi3(100, 5), 20)
assertEqualUint64("udivdi3", udivdi3(18446744073709551615, 3), 6148914691236517205) // uint64最大值除以3 assertEqualUint64("udivdi3", udivdi3(18446744073709551615, 3), 6148914691236517205)
assertEqualUint64("udivdi3", udivdi3(0, 123456789), 0) assertEqualUint64("udivdi3", udivdi3(0, 123456789), 0)
// Test divdi3 - signed 64-bit division // Test divdi3 - signed 64-bit division
@@ -346,7 +346,7 @@ func testShiftFunctions() {
// Test lshrdi3 - logical shift right // Test lshrdi3 - logical shift right
assertEqualUint64("lshrdi3", lshrdi3(1024, 10), 1) assertEqualUint64("lshrdi3", lshrdi3(1024, 10), 1)
assertEqualUint64("lshrdi3", lshrdi3(0x8000000000000000, 63), 1) // 无符号移位 assertEqualUint64("lshrdi3", lshrdi3(0x8000000000000000, 63), 1)
} }
func testBitManipulationFunctions() { func testBitManipulationFunctions() {