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:
parent
7928ad4f9b
commit
63f43ba60a
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,7 @@ namespace ircd
|
|||
/// targets and specializations are created.
|
||||
template<class T>
|
||||
inline uint
|
||||
__attribute__((target("lzcnt")))
|
||||
ircd::simd::clz(const T a)
|
||||
noexcept
|
||||
{
|
||||
|
@ -64,6 +65,7 @@ noexcept
|
|||
/// targets and specializations are created.
|
||||
template<class T>
|
||||
inline uint
|
||||
__attribute__((target("lzcnt")))
|
||||
ircd::simd::ctz(const T a)
|
||||
noexcept
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue