1
; This file is part of darktable,
2
; copyright (c) 2009--2010 henrik andersson.
4
; darktable is free software: you can redistribute it and/or modify
5
; it under the terms of the GNU General Public License as published by
6
; the Free Software Foundation, either version 3 of the License, or
7
; (at your option) any later version.
9
; darktable is distributed in the hope that it will be useful,
10
; but WITHOUT ANY WARRANTY; without even the implied warranty of
11
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
; GNU General Public License for more details.
14
; You should have received a copy of the GNU General Public License
15
; along with darktable. If not, see <http://www.gnu.org/licenses/>.
20
sse2_text: db "SSE2",0
21
sse3_text: db "SSE3",0
22
ssse3_text: db "SSSE3",0
23
sse4_1_text: db "SSE4.1",0
24
sse4_2_text: db "SSE4.2",0
29
mov eax, 1 ; Call cpuid with function number 1
31
push ebp ; setup stackframe for _printf call
34
bt edx,20 ; test sse4_2
37
bt edx,19 ; test sse4_1
53
mov esp, ebp ; cleanout stackframe
59
add esp, 4 ; pop stack 4 bytes
60
mov esp, ebp ; cleanout stackframe