projg2 / cpuid2cpuflags

Tool to generate CPU_FLAGS_* for your CPU
GNU General Public License v2.0
104 stars 20 forks source link

Include rdrand detection support #15

Closed jsmolic closed 4 years ago

jsmolic commented 4 years ago

Hi, related with discussion in [1] and [2], would it be possible to include rdrand detection? Currently, dev-libs/json-c and dev-haskell/cryptonite have rdrand local USE flag [3], so it could be included in cpu_flags_x86 USE_EXPAND. Should this be added in profiles/desc first, before including it here? (according to https://github.com/mgorny/cpuid2cpuflags/issues/1#issuecomment-290835889)

[1] https://github.com/gentoo/gentoo/pull/15895 [2] https://bugs.gentoo.org/724354 [3] https://packages.gentoo.org/useflags/cpu-flags-x86-rdrand

cc @juippis