X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fx86cpuid.pl;fp=crypto%2Fx86cpuid.pl;h=86772329bc7bd5a2492e59fdddb25e7901b0f6c2;hp=ef1216a8b2ed4cc8ee5fc35667114ce36017b1aa;hb=f4d456408d9d7bca31f34765d1a05fbd9fa55826;hpb=5599c7331b90d9d29c9914c2a95c16d91485415a diff --git a/crypto/x86cpuid.pl b/crypto/x86cpuid.pl index ef1216a8b2..86772329bc 100644 --- a/crypto/x86cpuid.pl +++ b/crypto/x86cpuid.pl @@ -469,6 +469,18 @@ my $max = "ebp"; &ret (); &function_end_B("OPENSSL_ia32_rdrand"); +&function_begin_B("OPENSSL_ia32_rdseed"); + &mov ("ecx",8); +&set_label("loop"); + &rdseed ("eax"); + &jc (&label("break")); + &loop (&label("loop")); +&set_label("break"); + &cmp ("eax",0); + &cmove ("eax","ecx"); + &ret (); +&function_end_B("OPENSSL_ia32_rdseed"); + &initseg("OPENSSL_cpuid_setup"); &hidden("OPENSSL_cpuid_setup");