Home
last modified time | relevance | path

Searched refs:cached_result (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/common/crypto/arcfour/
H A Darcfour_crypt.c239 static int cached_result = -1; in arcfour_crypt_on_intel() local
241 if (cached_result == -1) { /* first time */ in arcfour_crypt_on_intel()
243 cached_result = (cpuid_getvendor(CPU) == X86_VENDOR_Intel); in arcfour_crypt_on_intel()
248 cached_result = ((ui & AV_386_AMD_MMX) == 0); in arcfour_crypt_on_intel()
252 return (cached_result); in arcfour_crypt_on_intel()
/illumos-gate/usr/src/common/crypto/modes/
H A Dgcm.c738 static int cached_result = -1; in intel_pclmulqdq_instruction_present() local
740 if (cached_result == -1) { /* first time */ in intel_pclmulqdq_instruction_present()
742 cached_result = in intel_pclmulqdq_instruction_present()
748 cached_result = (ui & AV_386_PCLMULQDQ) != 0; in intel_pclmulqdq_instruction_present()
752 return (cached_result); in intel_pclmulqdq_instruction_present()
/illumos-gate/usr/src/common/crypto/aes/
H A Daes_impl.c1775 static int cached_result = -1; in intel_aes_instructions_present() local
1777 if (cached_result == -1) { /* first time */ in intel_aes_instructions_present()
1779 cached_result = is_x86_feature(x86_featureset, X86FSET_AES); in intel_aes_instructions_present()
1784 cached_result = (ui & AV_386_AES) != 0; in intel_aes_instructions_present()
1788 return (cached_result); in intel_aes_instructions_present()
/illumos-gate/usr/src/common/bignum/
H A Dbignumimpl.c194 static int cached_result = -1; in bignum_on_intel() local
196 if (cached_result == -1) { /* first time */ in bignum_on_intel()
198 cached_result = (cpuid_getvendor(CPU) == X86_VENDOR_Intel); in bignum_on_intel()
203 cached_result = ((ui & AV_386_AMD_MMX) == 0); in bignum_on_intel()
207 return (cached_result); in bignum_on_intel()