This is an automated email from the ASF dual-hosted git repository.

dingyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-sgx-sdk.git


The following commit(s) were added to refs/heads/master by this push:
     new 1157604  fix enum Feature avx1 to avx
     new 5929e2f  Merge pull request #196 from volcano0dr/master
1157604 is described below

commit 1157604dcc33b58e66662191caa4e7fd8092e8d8
Author: volcano <volcano...@163.com>
AuthorDate: Wed Jan 15 11:19:02 2020 +0800

    fix enum Feature avx1 to avx
    
    is_x86_feature_detected uses Feature::avx, but enum Feature defines avx1, 
so fix enum Feature, avx1 to avx.
---
 sgx_trts/src/cpu_feature.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sgx_trts/src/cpu_feature.rs b/sgx_trts/src/cpu_feature.rs
index 0baa996..639adab 100644
--- a/sgx_trts/src/cpu_feature.rs
+++ b/sgx_trts/src/cpu_feature.rs
@@ -229,7 +229,7 @@ impl_enum! {
         /* 16-bit floating-point conversions instructions */
         f16c = 16,            /* 0x00008000 */
         /* AVX instructions - SNB */
-        avx1 = 17,            /* 0x00010000 */
+        avx = 17,            /* 0x00010000 */
         /* RDRND (read random value) instruction */
         rdrand = 18,          /* 0x00020000 */
         /* FMA, may need more precise name - HSW */


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@teaclave.apache.org
For additional commands, e-mail: commits-h...@teaclave.apache.org

Reply via email to