From ff93564c55c28f0236f1118000cb6c263948e1d5 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 9 Oct 2019 11:09:40 -0700 Subject: [PATCH] Update predicate documentation to match new ConstantData parameter --- cranelift/codegen/src/predicates.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cranelift/codegen/src/predicates.rs b/cranelift/codegen/src/predicates.rs index 374e2bbbff..5812163e09 100644 --- a/cranelift/codegen/src/predicates.rs +++ b/cranelift/codegen/src/predicates.rs @@ -32,13 +32,13 @@ pub fn is_zero_32_bit_float>(x: T) -> bool { x32.bits() == 0 } -/// Check that a 128-bit vector contains all zeroes. +/// Check that a constant contains all zeroes. #[allow(dead_code)] pub fn is_all_zeroes(x: &ConstantData) -> bool { x.iter().all(|&f| f == 0) } -/// Check that a 128-bit vector contains all ones. +/// Check that a constant contains all ones. #[allow(dead_code)] pub fn is_all_ones(x: &ConstantData) -> bool { x.iter().all(|&f| f == 0xff)