From 63f43ba60a4cb8ff5540dcfc35b4cc84febc0350 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 12 Jul 2020 13:00:14 -0700 Subject: [PATCH] ircd::simd: Attribute target lzcnt feature. --- include/ircd/simd/simd.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ircd/simd/simd.h b/include/ircd/simd/simd.h index 03253f67c..e86f12157 100644 --- a/include/ircd/simd/simd.h +++ b/include/ircd/simd/simd.h @@ -38,6 +38,7 @@ namespace ircd /// targets and specializations are created. template inline uint +__attribute__((target("lzcnt"))) ircd::simd::clz(const T a) noexcept { @@ -64,6 +65,7 @@ noexcept /// targets and specializations are created. template inline uint +__attribute__((target("lzcnt"))) ircd::simd::ctz(const T a) noexcept {