We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f893fe commit 75c52f8Copy full SHA for 75c52f8
crates/core_arch/src/powerpc/altivec.rs
@@ -321,6 +321,9 @@ extern "C" {
321
322
#[link_name = "llvm.ppc.altivec.mfvscr"]
323
fn mfvscr() -> vector_unsigned_short;
324
+
325
+ #[link_name = "llvm.ppc.altivec.vlogefp"]
326
+ fn vlogefp(a: vector_float) -> vector_float;
327
}
328
329
macro_rules! s_t_l {
@@ -2504,6 +2507,14 @@ where
2504
2507
p.vec_lde(off)
2505
2508
2506
2509
2510
+/// Vector Base-2 Logarithm Estimate
2511
+#[inline]
2512
+#[target_feature(enable = "altivec")]
2513
+#[cfg_attr(test, assert_instr(vlogefp))]
2514
+pub unsafe fn vec_loge(a: vector_float) -> vector_float {
2515
+ vlogefp(a)
2516
+}
2517
2518
/// Vector floor.
2519
#[inline]
2520
#[target_feature(enable = "altivec")]
0 commit comments