Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/boringssl/mac-x86_64/crypto/cpu-x86_64-asm.S

Issue 377783004: Add BoringSSL GYP files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final Python fix. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #if defined(__x86_64__)
2 .text
3
4 .globl _OPENSSL_ia32_cpuid
5
6 .p2align 4
7 _OPENSSL_ia32_cpuid:
8
9
10 movq %rdi,%rdi
11 movq %rbx,%r8
12
13 xorl %eax,%eax
14 movl %eax,8(%rdi)
15 cpuid
16 movl %eax,%r11d
17
18 xorl %eax,%eax
19 cmpl $1970169159,%ebx
20 setne %al
21 movl %eax,%r9d
22 cmpl $1231384169,%edx
23 setne %al
24 orl %eax,%r9d
25 cmpl $1818588270,%ecx
26 setne %al
27 orl %eax,%r9d
28 jz L$intel
29
30 cmpl $1752462657,%ebx
31 setne %al
32 movl %eax,%r10d
33 cmpl $1769238117,%edx
34 setne %al
35 orl %eax,%r10d
36 cmpl $1145913699,%ecx
37 setne %al
38 orl %eax,%r10d
39 jnz L$intel
40
41
42
43
44 movl $2147483648,%eax
45 cpuid
46
47
48 cmpl $2147483649,%eax
49 jb L$intel
50 movl %eax,%r10d
51 movl $2147483649,%eax
52 cpuid
53
54
55 orl %ecx,%r9d
56 andl $2049,%r9d
57
58 cmpl $2147483656,%r10d
59 jb L$intel
60
61 movl $2147483656,%eax
62 cpuid
63
64 movzbq %cl,%r10
65 incq %r10
66
67 movl $1,%eax
68 cpuid
69
70 btl $28,%edx
71 jnc L$generic
72 shrl $16,%ebx
73 cmpb %r10b,%bl
74 ja L$generic
75 andl $4026531839,%edx
76 jmp L$generic
77
78 L$intel:
79 cmpl $4,%r11d
80 movl $-1,%r10d
81 jb L$nocacheinfo
82
83 movl $4,%eax
84 movl $0,%ecx
85 cpuid
86 movl %eax,%r10d
87 shrl $14,%r10d
88 andl $4095,%r10d
89
90 cmpl $7,%r11d
91 jb L$nocacheinfo
92
93 movl $7,%eax
94 xorl %ecx,%ecx
95 cpuid
96 movl %ebx,8(%rdi)
97
98 L$nocacheinfo:
99 movl $1,%eax
100 cpuid
101
102 andl $3220176895,%edx
103 cmpl $0,%r9d
104 jne L$notintel
105 orl $1073741824,%edx
106 andb $15,%ah
107 cmpb $15,%ah
108 jne L$notintel
109 orl $1048576,%edx
110 L$notintel:
111 btl $28,%edx
112 jnc L$generic
113 andl $4026531839,%edx
114 cmpl $0,%r10d
115 je L$generic
116
117 orl $268435456,%edx
118 shrl $16,%ebx
119 cmpb $1,%bl
120 ja L$generic
121 andl $4026531839,%edx
122 L$generic:
123 andl $2048,%r9d
124 andl $4294965247,%ecx
125 orl %ecx,%r9d
126
127 movl %edx,%r10d
128 btl $27,%r9d
129 jnc L$clear_avx
130 xorl %ecx,%ecx
131 .byte 0x0f,0x01,0xd0
132 andl $6,%eax
133 cmpl $6,%eax
134 je L$done
135 L$clear_avx:
136 movl $4026525695,%eax
137 andl %eax,%r9d
138 andl $4294967263,8(%rdi)
139 L$done:
140 movl %r9d,4(%rdi)
141 movl %r10d,0(%rdi)
142 movq %r8,%rbx
143 .byte 0xf3,0xc3
144
145
146 #endif
OLDNEW
« no previous file with comments | « third_party/boringssl/mac-x86_64/crypto/bn/x86_64-mont5.S ('k') | third_party/boringssl/mac-x86_64/crypto/md5/md5-x86_64.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698