Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e01dbac2
Commit
e01dbac2
authored
Oct 26, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove some redundant shifts.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5767c63a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
nt.c
dlls/ntdll/nt.c
+13
-13
No files found.
dlls/ntdll/nt.c
View file @
e01dbac2
...
...
@@ -971,15 +971,15 @@ static inline void get_cpuinfo(SYSTEM_CPU_INFORMATION* info)
if
(
regs2
[
3
]
&
(
1
<<
26
))
info
->
FeatureSet
|=
CPU_FEATURE_SSE2
;
user_shared_data
->
ProcessorFeatures
[
PF_FLOATING_POINT_EMULATED
]
=
!
(
regs2
[
3
]
&
1
);
user_shared_data
->
ProcessorFeatures
[
PF_RDTSC_INSTRUCTION_AVAILABLE
]
=
(
regs2
[
3
]
&
(
1
<<
4
))
>>
4
;
user_shared_data
->
ProcessorFeatures
[
PF_PAE_ENABLED
]
=
(
regs2
[
3
]
&
(
1
<<
6
))
>>
6
;
user_shared_data
->
ProcessorFeatures
[
PF_COMPARE_EXCHANGE_DOUBLE
]
=
(
regs2
[
3
]
&
(
1
<<
8
))
>>
8
;
user_shared_data
->
ProcessorFeatures
[
PF_MMX_INSTRUCTIONS_AVAILABLE
]
=
(
regs2
[
3
]
&
(
1
<<
23
))
>>
23
;
user_shared_data
->
ProcessorFeatures
[
PF_XMMI_INSTRUCTIONS_AVAILABLE
]
=
(
regs2
[
3
]
&
(
1
<<
25
))
>>
25
;
user_shared_data
->
ProcessorFeatures
[
PF_XMMI64_INSTRUCTIONS_AVAILABLE
]
=
(
regs2
[
3
]
&
(
1
<<
26
))
>>
26
;
user_shared_data
->
ProcessorFeatures
[
PF_RDTSC_INSTRUCTION_AVAILABLE
]
=
(
regs2
[
3
]
>>
4
)
&
1
;
user_shared_data
->
ProcessorFeatures
[
PF_PAE_ENABLED
]
=
(
regs2
[
3
]
>>
6
)
&
1
;
user_shared_data
->
ProcessorFeatures
[
PF_COMPARE_EXCHANGE_DOUBLE
]
=
(
regs2
[
3
]
>>
8
)
&
1
;
user_shared_data
->
ProcessorFeatures
[
PF_MMX_INSTRUCTIONS_AVAILABLE
]
=
(
regs2
[
3
]
>>
23
)
&
1
;
user_shared_data
->
ProcessorFeatures
[
PF_XMMI_INSTRUCTIONS_AVAILABLE
]
=
(
regs2
[
3
]
>>
25
)
&
1
;
user_shared_data
->
ProcessorFeatures
[
PF_XMMI64_INSTRUCTIONS_AVAILABLE
]
=
(
regs2
[
3
]
>>
26
)
&
1
;
user_shared_data
->
ProcessorFeatures
[
PF_SSE3_INSTRUCTIONS_AVAILABLE
]
=
regs2
[
2
]
&
1
;
user_shared_data
->
ProcessorFeatures
[
PF_XSAVE_ENABLED
]
=
(
regs2
[
2
]
&
(
1
<<
27
))
>>
27
;
user_shared_data
->
ProcessorFeatures
[
PF_COMPARE_EXCHANGE128
]
=
(
regs2
[
2
]
&
(
1
<<
13
))
>>
13
;
user_shared_data
->
ProcessorFeatures
[
PF_XSAVE_ENABLED
]
=
(
regs2
[
2
]
>>
27
)
&
1
;
user_shared_data
->
ProcessorFeatures
[
PF_COMPARE_EXCHANGE128
]
=
(
regs2
[
2
]
>>
13
)
&
1
;
if
((
regs2
[
3
]
&
(
1
<<
26
))
&&
(
regs2
[
3
]
&
(
1
<<
24
)))
/* has SSE2 and FXSAVE/FXRSTOR */
user_shared_data
->
ProcessorFeatures
[
PF_SSE_DAZ_MODE_AVAILABLE
]
=
have_sse_daz_mode
();
...
...
@@ -999,9 +999,9 @@ static inline void get_cpuinfo(SYSTEM_CPU_INFORMATION* info)
if
(
regs
[
0
]
>=
0x80000001
)
{
do_cpuid
(
0x80000001
,
regs2
);
/* get vendor features */
user_shared_data
->
ProcessorFeatures
[
PF_VIRT_FIRMWARE_ENABLED
]
=
(
regs2
[
2
]
&
(
1
<<
2
))
>>
2
;
user_shared_data
->
ProcessorFeatures
[
PF_NX_ENABLED
]
=
(
regs2
[
3
]
&
(
1
<<
20
))
>>
20
;
user_shared_data
->
ProcessorFeatures
[
PF_3DNOW_INSTRUCTIONS_AVAILABLE
]
=
(
regs2
[
3
]
&
(
1
<<
31
))
>>
3
1
;
user_shared_data
->
ProcessorFeatures
[
PF_VIRT_FIRMWARE_ENABLED
]
=
(
regs2
[
2
]
>>
2
)
&
1
;
user_shared_data
->
ProcessorFeatures
[
PF_NX_ENABLED
]
=
(
regs2
[
3
]
>>
20
)
&
1
;
user_shared_data
->
ProcessorFeatures
[
PF_3DNOW_INSTRUCTIONS_AVAILABLE
]
=
(
regs2
[
3
]
>>
31
)
&
1
;
if
(
regs2
[
3
]
&
(
1
<<
31
))
info
->
FeatureSet
|=
CPU_FEATURE_3DNOW
;
}
}
...
...
@@ -1016,13 +1016,13 @@ static inline void get_cpuinfo(SYSTEM_CPU_INFORMATION* info)
info
->
Revision
|=
regs2
[
0
]
&
0xf
;
/* stepping */
if
(
regs2
[
3
]
&
(
1
<<
21
))
info
->
FeatureSet
|=
CPU_FEATURE_DS
;
user_shared_data
->
ProcessorFeatures
[
PF_VIRT_FIRMWARE_ENABLED
]
=
(
regs2
[
2
]
&
(
1
<<
5
))
>>
5
;
user_shared_data
->
ProcessorFeatures
[
PF_VIRT_FIRMWARE_ENABLED
]
=
(
regs2
[
2
]
>>
5
)
&
1
;
do_cpuid
(
0x80000000
,
regs
);
/* get vendor cpuid level */
if
(
regs
[
0
]
>=
0x80000001
)
{
do_cpuid
(
0x80000001
,
regs2
);
/* get vendor features */
user_shared_data
->
ProcessorFeatures
[
PF_NX_ENABLED
]
=
(
regs2
[
3
]
&
(
1
<<
20
))
>>
20
;
user_shared_data
->
ProcessorFeatures
[
PF_NX_ENABLED
]
=
(
regs2
[
3
]
>>
20
)
&
1
;
}
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment