瀏覽代碼

chacha20poly1305: fix style nits in variable names

Change-Id: I3ac9dc7bf1c1c6ff39b3385cbf965dfb57f8327a
Reviewed-on: https://go-review.googlesource.com/43511
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Han-Wen Nienhuys 8 年之前
父節點
當前提交
0fe963104e
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      chacha20poly1305/chacha20poly1305_amd64.go

+ 6 - 6
chacha20poly1305/chacha20poly1305_amd64.go

@@ -26,15 +26,15 @@ var (
 )
 )
 
 
 func init() {
 func init() {
-	detectCpuFeatures()
+	detectCPUFeatures()
 }
 }
 
 
-// detectCpuFeatures is used to detect if cpu instructions
+// detectCPUFeatures is used to detect if cpu instructions
 // used by the functions implemented in assembler in
 // used by the functions implemented in assembler in
 // chacha20poly1305_amd64.s are supported.
 // chacha20poly1305_amd64.s are supported.
-func detectCpuFeatures() {
-	maxId, _, _, _ := cpuid(0, 0)
-	if maxId < 1 {
+func detectCPUFeatures() {
+	maxID, _, _, _ := cpuid(0, 0)
+	if maxID < 1 {
 		return
 		return
 	}
 	}
 
 
@@ -54,7 +54,7 @@ func detectCpuFeatures() {
 	}
 	}
 	haveAVX := isSet(28, ecx1) && osSupportsAVX
 	haveAVX := isSet(28, ecx1) && osSupportsAVX
 
 
-	if maxId < 7 {
+	if maxID < 7 {
 		return
 		return
 	}
 	}