HWCAP for SHA-1 and SHA-256
Jeffrey Walton
noloader at gmail.com
Sat Feb 22 21:36:42 EST 2020
Hi Everyone,
I'm having trouble finding the HWCAP_* or HWCAP2_* for SHA-1 and
SHA-256 on x86 machines.
Poking around Torvald's GitHub does not reveal them in either auxvec.h
or hwcap2.h. Also see
https://github.com/torvalds/linux/tree/master/arch/x86/include/uapi/asm.
Grepping my local machine (x86_64) provides them for arm64, but not
x86 (WTF?):
$ grep -IR HWCAP2_ /usr/include
/usr/include/x86_64-linux-gnu/asm/hwcap2.h:#ifndef _ASM_X86_HWCAP2_H
/usr/include/x86_64-linux-gnu/asm/hwcap2.h:#define _ASM_X86_HWCAP2_H
/usr/include/x86_64-linux-gnu/asm/hwcap2.h:#define
HWCAP2_RING3MWAIT (1 << 0)
What are the HWCAP_* or HWCAP2_* to use for SHA-1 and SHA-256 on x86 machines?
Thanks in advance.
More information about the Kernelnewbies
mailing list