dot-asm / cryptogams

CRYPTOGAMS distribution repository
Other
56 stars 16 forks source link

add cpu detection code #4

Open shawnl opened 5 years ago

shawnl commented 5 years ago

it looks like you wrote the cpu detection code in openssl. It would be nice if that stuff (which is important for using these routines) was here, so the license was clearer.

noloader commented 5 years ago

Google has a library called cpu_features. It is missing a few key defines and platforms, like ARMv7 and PowerPC. You will certainly want ARMv7 for ARM builds. It is a good start, though.

You should be able to map cpu features to OpenSSL/Cryptogams defines with the use of grep.