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
eff671ef
Commit
eff671ef
authored
Nov 25, 2003
by
Jon Griffiths
Committed by
Alexandre Julliard
Nov 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation updates
parent
b82f98cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
17 deletions
+42
-17
cpu.c
dlls/kernel/cpu.c
+41
-16
lcformat.c
dlls/kernel/lcformat.c
+1
-1
No files found.
dlls/kernel/cpu.c
View file @
eff671ef
...
...
@@ -166,6 +166,18 @@ static void create_registry_keys( const SYSTEM_INFO *info )
/****************************************************************************
* QueryPerformanceCounter (KERNEL32.@)
*
* Get the current value of the performance counter.
*
* PARAMS
* counter [O] Destination for the current counter reading
*
* RETURNS
* Success: TRUE. counter contains the current reading
* Failure: FALSE.
*
* SEE ALSO
* See QueryPerformanceFrequency.
*/
BOOL
WINAPI
QueryPerformanceCounter
(
PLARGE_INTEGER
counter
)
{
...
...
@@ -190,6 +202,18 @@ BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER counter)
/****************************************************************************
* QueryPerformanceFrequency (KERNEL32.@)
*
* Get the resolution of the performace counter.
*
* PARAMS
* frequency [O] Destination for the counter resolution
*
* RETURNS
* Success. TRUE. Frequency contains the resolution of the counter.
* Failure: FALSE.
*
* SEE ALSO
* See QueryPerformanceCounter.
*/
BOOL
WINAPI
QueryPerformanceFrequency
(
PLARGE_INTEGER
frequency
)
{
...
...
@@ -211,27 +235,25 @@ BOOL WINAPI QueryPerformanceFrequency(PLARGE_INTEGER frequency)
/***********************************************************************
* GetSystemInfo [KERNEL32.@]
*
* Get
s the current system information
.
* Get
information about the system
.
*
* RETURNS
* Nothing.
*
* NOTES
* On the first call it creates cached values, so it doesn't have to determine
* them repeatedly. On Linux, the
/proc/cpuinfo
special file is used.
* them repeatedly. On Linux, the
"/proc/cpuinfo"
special file is used.
*
* It creates a registry subhierarchy, looking like:
* \HARDWARE\DESCRIPTION\System\CentralProcessor\<processornumber>\
* Identifier (CPU x86)
* "\HARDWARE\DESCRIPTION\System\CentralProcessor\<processornumber>\Identifier (CPU x86)".
* Note that there is a hierarchy for every processor installed, so this
* supports multiprocessor systems. This is done like Win95 does it, I think.
*
* It also creates a cached flag array for IsProcessorFeaturePresent().
*
* No NULL ptr check for LPSYSTEM_INFO in Win9x.
*
* RETURNS
* nothing, really
*/
VOID
WINAPI
GetSystemInfo
(
LPSYSTEM_INFO
si
/* [out]
system information */
)
{
LPSYSTEM_INFO
si
/* [out]
Destination for system information, may not be NULL */
)
{
static
int
cache
=
0
;
static
SYSTEM_INFO
cachedsi
;
...
...
@@ -568,13 +590,16 @@ VOID WINAPI GetSystemInfo(
/***********************************************************************
* IsProcessorFeaturePresent [KERNEL32.@]
* RETURNS:
* TRUE if processor feature present
* FALSE otherwise
*
* Determine if the cpu supports a given feature.
*
* RETURNS
* TRUE, If the processor supports feature,
* FALSE otherwise.
*/
BOOL
WINAPI
IsProcessorFeaturePresent
(
DWORD
feature
/* [in]
feature number, see PF_ defines */
)
{
DWORD
feature
/* [in]
Feature number, (PF_ constants from "winnt.h") */
)
{
SYSTEM_INFO
si
;
GetSystemInfo
(
&
si
);
/* To ensure the information is loaded and cached */
...
...
dlls/kernel/lcformat.c
View file @
eff671ef
...
...
@@ -727,7 +727,7 @@ GetDateTimeFormatA_InvalidParameter:
* cchOut [I] Size of lpDateStr, or 0 to calculate the resulting size
*
* NOTES
* - If lpFormat is NULL, lp
szValue
will be formatted according to the format
* - If lpFormat is NULL, lp
DateStr
will be formatted according to the format
* details returned by GetLocaleInfoA() and modified by dwFlags.
* - lpFormat is a string of characters and formatting tokens. Any characters
* in the string are copied verbatim to lpDateStr, with tokens being replaced
...
...
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