diff options
author | tetsuo55 <tetsuo55@users.sourceforge.net> | 2010-04-09 01:14:58 +0400 |
---|---|---|
committer | tetsuo55 <tetsuo55@users.sourceforge.net> | 2010-04-09 01:14:58 +0400 |
commit | a9b7bf3fb3e1334d8defd05ca4cfae870b4912e5 (patch) | |
tree | 2dab453d94d5e003379a6cc895eceb84c80e23ec /src/filters/BaseClasses/dxmperf.h | |
parent | aafd49a91f7c2fa9c7103971c16fa6e1b29e8bfd (diff) |
astyle formatting cleanup to make the sourcecode more accessible
switch used: astyle --style=ansi --min-conditional-indent=0 --pad=oper --unpad=paren
http://astyle.sourceforge.net/
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1783 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/BaseClasses/dxmperf.h')
-rw-r--r-- | src/filters/BaseClasses/dxmperf.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/filters/BaseClasses/dxmperf.h b/src/filters/BaseClasses/dxmperf.h index 54a21203b..f496a2f9e 100644 --- a/src/filters/BaseClasses/dxmperf.h +++ b/src/filters/BaseClasses/dxmperf.h @@ -14,19 +14,21 @@ #include "perflog.h"
#ifdef _IA64_
-extern "C" unsigned __int64 __getReg( int whichReg );
+extern "C" unsigned __int64 __getReg(int whichReg);
#pragma intrinsic(__getReg)
#endif // _IA64_
-inline ULONGLONG _RDTSC( void ) {
+inline ULONGLONG _RDTSC(void)
+{
#ifdef _X86_
LARGE_INTEGER li;
- __asm {
+ __asm
+ {
_emit 0x0F
_emit 0x31
- mov li.LowPart,eax
- mov li.HighPart,edx
+ mov li.LowPart, eax
+ mov li.HighPart, edx
}
return li.QuadPart;
@@ -35,7 +37,7 @@ inline ULONGLONG _RDTSC( void ) { #elif defined (_IA64_)
#define INL_REGID_APITC 3116
- return __getReg( INL_REGID_APITC );
+ return __getReg(INL_REGID_APITC);
#endif // 0
@@ -216,7 +218,7 @@ inline ULONGLONG _RDTSC( void ) { perfData.data.sampleDuration = (msecs); \
PerflogTraceEvent ((PEVENT_TRACE_HEADER) &perfData); \
} \
-
+
inline
VOID PERFLOG_STREAMTRACE(
@@ -227,13 +229,13 @@ VOID PERFLOG_STREAMTRACE( ULONGLONG Data2,
ULONGLONG Data3,
ULONGLONG Data4
- )
+)
{
- if (Level <= PerflogModuleLevel)
+ if(Level <= PerflogModuleLevel)
{
PERFINFO_WMI_STREAMTRACE perfData;
- memset( &perfData, 0, sizeof( perfData ) );
- perfData.header.Size = sizeof( perfData );
+ memset(&perfData, 0, sizeof(perfData));
+ perfData.header.Size = sizeof(perfData);
perfData.header.Flags = WNODE_FLAG_TRACED_GUID;
perfData.header.Guid = GUID_STREAMTRACE;
perfData.data.dshowClock = DShowClock;
|