0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

ircd::simd: Attribute target lzcnt feature.

This commit is contained in:
Jason Volk 2020-07-12 13:00:14 -07:00
parent 7928ad4f9b
commit 63f43ba60a

View file

@ -38,6 +38,7 @@ namespace ircd
/// targets and specializations are created. /// targets and specializations are created.
template<class T> template<class T>
inline uint inline uint
__attribute__((target("lzcnt")))
ircd::simd::clz(const T a) ircd::simd::clz(const T a)
noexcept noexcept
{ {
@ -64,6 +65,7 @@ noexcept
/// targets and specializations are created. /// targets and specializations are created.
template<class T> template<class T>
inline uint inline uint
__attribute__((target("lzcnt")))
ircd::simd::ctz(const T a) ircd::simd::ctz(const T a)
noexcept noexcept
{ {