@@ -32,9 +32,9 @@ macro_rules! __unstable_detect_feature {
32
32
( "aes" , $unstable_detect_feature: path) => {
33
33
$unstable_detect_feature(
34
34
$crate:: __vendor_runtime:: __Feature:: aes{ } ) } ;
35
- ( "pclmul " , $unstable_detect_feature: path) => {
35
+ ( "pclmulqdq " , $unstable_detect_feature: path) => {
36
36
$unstable_detect_feature(
37
- $crate:: __vendor_runtime:: __Feature:: pclmul { } ) } ;
37
+ $crate:: __vendor_runtime:: __Feature:: pclmulqdq { } ) } ;
38
38
( "tsc" , $unstable_detect_feature: path) => {
39
39
$unstable_detect_feature(
40
40
$crate:: __vendor_runtime:: __Feature:: tsc{ } ) } ;
@@ -180,7 +180,7 @@ pub enum __Feature {
180
180
/// AES (Advanced Encryption Standard New Instructions AES-NI)
181
181
aes,
182
182
/// CLMUL (Carry-less Multiplication)
183
- pclmul ,
183
+ pclmulqdq ,
184
184
/// TSC (Time Stamp Counter)
185
185
tsc,
186
186
/// MMX
@@ -356,7 +356,7 @@ pub fn detect_features() -> cache::Initializer {
356
356
enable ( proc_info_ecx, 20 , __Feature:: sse4_2) ;
357
357
enable ( proc_info_ecx, 23 , __Feature:: popcnt) ;
358
358
enable ( proc_info_ecx, 25 , __Feature:: aes) ;
359
- enable ( proc_info_ecx, 1 , __Feature:: pclmul ) ;
359
+ enable ( proc_info_ecx, 1 , __Feature:: pclmulqdq ) ;
360
360
enable ( proc_info_edx, 4 , __Feature:: tsc) ;
361
361
enable ( proc_info_edx, 23 , __Feature:: mmx) ;
362
362
enable ( proc_info_edx, 24 , __Feature:: fxsr) ;
@@ -469,7 +469,7 @@ mod tests {
469
469
#[ test]
470
470
fn dump ( ) {
471
471
println ! ( "aes: {:?}" , cfg_feature_enabled!( "aes" ) ) ;
472
- println ! ( "pclmul : {:?}" , cfg_feature_enabled!( "pclmul " ) ) ;
472
+ println ! ( "pclmulqdq : {:?}" , cfg_feature_enabled!( "pclmulqdq " ) ) ;
473
473
println ! ( "tsc: {:?}" , cfg_feature_enabled!( "tsc" ) ) ;
474
474
println ! ( "sse: {:?}" , cfg_feature_enabled!( "sse" ) ) ;
475
475
println ! ( "sse2: {:?}" , cfg_feature_enabled!( "sse2" ) ) ;
@@ -511,7 +511,7 @@ mod tests {
511
511
fn compare_with_cupid ( ) {
512
512
let information = cupid:: master ( ) . unwrap ( ) ;
513
513
assert_eq ! ( cfg_feature_enabled!( "aes" ) , information. aesni( ) ) ;
514
- assert_eq ! ( cfg_feature_enabled!( "pclmul " ) , information. pclmulqdq( ) ) ;
514
+ assert_eq ! ( cfg_feature_enabled!( "pclmulqdq " ) , information. pclmulqdq( ) ) ;
515
515
assert_eq ! ( cfg_feature_enabled!( "tsc" ) , information. tsc( ) ) ;
516
516
assert_eq ! ( cfg_feature_enabled!( "sse" ) , information. sse( ) ) ;
517
517
assert_eq ! ( cfg_feature_enabled!( "sse2" ) , information. sse2( ) ) ;
0 commit comments