Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(731)

Side by Side Diff: src/pkg/crypto/aes/asm_amd64.s

Issue 160200044: [dev.power64] code review 160200044: build: merge default into dev.power64 (Closed)
Patch Set: diff -r be0c14f62257b42485019e9e1db23cf40d2e249f https://code.google.com/p/go Created 10 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/compress/zlib/writer.go ('k') | src/pkg/crypto/cipher/cfb_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Go Authors. All rights reserved. 1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include "../../../cmd/ld/textflag.h" 5 #include "textflag.h"
6 6
7 // func hasAsm() bool 7 // func hasAsm() bool
8 // returns whether AES-NI is supported 8 // returns whether AES-NI is supported
9 TEXT ·hasAsm(SB),NOSPLIT,$0 9 TEXT ·hasAsm(SB),NOSPLIT,$0
10 XORQ AX, AX 10 XORQ AX, AX
11 INCL AX 11 INCL AX
12 CPUID 12 CPUID
13 SHRQ $25, CX 13 SHRQ $25, CX
14 ANDQ $1, CX 14 ANDQ $1, CX
15 MOVB CX, ret+0(FP) 15 MOVB CX, ret+0(FP)
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 PSHUFD $0xaa, X1, X1 280 PSHUFD $0xaa, X1, X1
281 SHUFPS $0x10, X2, X4 281 SHUFPS $0x10, X2, X4
282 PXOR X4, X2 282 PXOR X4, X2
283 SHUFPS $0x8c, X2, X4 283 SHUFPS $0x8c, X2, X4
284 PXOR X4, X2 284 PXOR X4, X2
285 PXOR X1, X2 285 PXOR X1, X2
286 286
287 MOVUPS X2, (BX) 287 MOVUPS X2, (BX)
288 ADDQ $16, BX 288 ADDQ $16, BX
289 RET 289 RET
OLDNEW
« no previous file with comments | « src/pkg/compress/zlib/writer.go ('k') | src/pkg/crypto/cipher/cfb_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b