Rewrote the comments in the libraries under 'includes' in English (excluding those inside folders)
This commit is contained in:
@@ -2,7 +2,7 @@ import t, c
|
||||
|
||||
|
||||
# ============================================================
|
||||
# AVX2 双精度向量运算 (4 x double, 256-bit YMM)
|
||||
# AVX2 double precision vector operations (4 x double, 256-bit YMM)
|
||||
# ============================================================
|
||||
|
||||
def simd_add4d(a: t.CPtr, b: t.CPtr, out: t.CPtr) -> t.CVoid:
|
||||
@@ -140,7 +140,7 @@ vmovupd [{c.AsmInp(out, t.ASM_DESCR.REG_ANY)}], ymm0""",
|
||||
|
||||
|
||||
# ============================================================
|
||||
# SSE2 单精度向量运算 (4 x float, 128-bit XMM)
|
||||
# SSE2 single precision vector operations (4 x float, 128-bit XMM)
|
||||
# ============================================================
|
||||
|
||||
def simd_add4f(a: t.CPtr, b: t.CPtr, out: t.CPtr) -> t.CVoid:
|
||||
@@ -180,7 +180,7 @@ movups [{c.AsmInp(out, t.ASM_DESCR.REG_ANY)}], xmm0""",
|
||||
|
||||
|
||||
# ============================================================
|
||||
# 批量数组运算 (AVX2 循环, 处理 N 个 double)
|
||||
# Batch array operations (AVX2 loop, process N double values)
|
||||
# ============================================================
|
||||
|
||||
def simd_add_array(a: t.CPtr, b: t.CPtr, out: t.CPtr, n: t.CSizeT) -> t.CVoid:
|
||||
@@ -373,7 +373,7 @@ vzeroupper""",
|
||||
|
||||
|
||||
# ============================================================
|
||||
# LLVMIR 精确标量运算 (LLVM 内置函数)
|
||||
# LLVMIR precise scalar operations (LLVM intrinsic functions)
|
||||
# ============================================================
|
||||
|
||||
def simd_sqrt(x: t.CDouble) -> t.CDouble:
|
||||
|
||||
Reference in New Issue
Block a user