From dc59333657d1ccb9afa553167d100a3d1906e9cf Mon Sep 17 00:00:00 2001 From: Haolan Date: Wed, 10 Sep 2025 17:05:38 +0800 Subject: [PATCH] test: remove chinses commets --- _embdemo/esp32/libc/main.go | 2 -- _embdemo/esp32/rt/main.go | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/_embdemo/esp32/libc/main.go b/_embdemo/esp32/libc/main.go index 11e21189..297373c3 100644 --- a/_embdemo/esp32/libc/main.go +++ b/_embdemo/esp32/libc/main.go @@ -140,7 +140,6 @@ func strerror_r(errnum c.Int, buf *c.Char, buflen c.SizeT) c.Int //go:linkname strverscmp C.strverscmp func strverscmp(s1, s2 *c.Char) c.Int -// 内存分配函数 // //go:linkname malloc C.malloc 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 func mallopt(param, value c.Int) c.Int -// 标准I/O函数 // //go:linkname fopen C.fopen func fopen(pathname, mode *c.Char) c.FilePtr diff --git a/_embdemo/esp32/rt/main.go b/_embdemo/esp32/rt/main.go index a3e49592..dfd426de 100644 --- a/_embdemo/esp32/rt/main.go +++ b/_embdemo/esp32/rt/main.go @@ -256,7 +256,7 @@ func testDivisionFunctions() { // Test udivdi3 - unsigned 64-bit division 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) // Test divdi3 - signed 64-bit division @@ -346,7 +346,7 @@ func testShiftFunctions() { // Test lshrdi3 - logical shift right assertEqualUint64("lshrdi3", lshrdi3(1024, 10), 1) - assertEqualUint64("lshrdi3", lshrdi3(0x8000000000000000, 63), 1) // 无符号移位 + assertEqualUint64("lshrdi3", lshrdi3(0x8000000000000000, 63), 1) } func testBitManipulationFunctions() {