From 89caa7798f6bc58f2677aa254f742c0f8f2802a7 Mon Sep 17 00:00:00 2001 From: Jens Reidel Date: Thu, 31 Oct 2024 18:22:43 +0100 Subject: [PATCH] core_arch: powerpc: Fix documentation for vec_ctu Like the name suggests, this converts to unsigned integers rather than signed. I assume this was copy pasted from vec_cts. Signed-off-by: Jens Reidel --- library/stdarch/crates/core_arch/src/powerpc/altivec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch/crates/core_arch/src/powerpc/altivec.rs b/library/stdarch/crates/core_arch/src/powerpc/altivec.rs index 5f8d53d09626..cbe7b26402ab 100644 --- a/library/stdarch/crates/core_arch/src/powerpc/altivec.rs +++ b/library/stdarch/crates/core_arch/src/powerpc/altivec.rs @@ -4117,7 +4117,7 @@ pub unsafe fn vec_cts(a: vector_float) -> vector_signed_int { vctsxs(a, IMM5) } -/// Vector Convert to Signed Integer +/// Vector Convert to Unsigned Integer #[inline] #[target_feature(enable = "altivec")] #[cfg_attr(test, assert_instr(vctuxs, IMM5 = 1))]