mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Applied astyle formatting
This commit is contained in:
parent
57e4c66153
commit
9349b280cc
3 changed files with 10 additions and 10 deletions
|
@ -227,7 +227,7 @@ void idMatX::CopyLowerToUpperTriangle()
|
|||
// compilers (e.g. MCST lcc, Intel icc) that use the C++ Front End from EDG (Edison Design Group) have a bug
|
||||
// - no suitable conversion function from "__m128c" to "float"
|
||||
// an explicit type conversion is used as a solution to this bug
|
||||
const __m128 bottomMask[2] = { (__m128) __m128c( _mm_set1_epi32( 0 ) ), (__m128) __m128c( _mm_set1_epi32( -1 ) ) };
|
||||
const __m128 bottomMask[2] = { ( __m128 ) __m128c( _mm_set1_epi32( 0 ) ), ( __m128 ) __m128c( _mm_set1_epi32( -1 ) ) };
|
||||
|
||||
float* __restrict basePtr = ToFloatPtr();
|
||||
|
||||
|
|
|
@ -119,8 +119,8 @@ double Sys_ClockTicksPerSecond()
|
|||
|
||||
ret = MeasureClockTicks();
|
||||
init = true;
|
||||
common->Printf( "measured CPU frequency: %g MHz\n", ret / 1000000.0 );
|
||||
return ret;
|
||||
common->Printf( "measured CPU frequency: %g MHz\n", ret / 1000000.0 );
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -263,16 +263,16 @@ double Sys_GetClockTicks()
|
|||
return ( double ) lo + ( double ) 0xFFFFFFFF * hi;
|
||||
// RB begin
|
||||
#elif defined( __x86_64__ )
|
||||
uint32_t lo, hi;
|
||||
__asm__ __volatile__ ( "rdtsc" : "=a" (lo), "=d" (hi));
|
||||
return ( ( ( uint64_t )hi ) << 32 ) | lo;
|
||||
uint32_t lo, hi;
|
||||
__asm__ __volatile__( "rdtsc" : "=a"( lo ), "=d"( hi ) );
|
||||
return ( ( ( uint64_t )hi ) << 32 ) | lo;
|
||||
#else
|
||||
//#error unsupported CPU
|
||||
struct timespec now;
|
||||
//#error unsupported CPU
|
||||
struct timespec now;
|
||||
|
||||
clock_gettime( CLOCK_MONOTONIC, &now );
|
||||
clock_gettime( CLOCK_MONOTONIC, &now );
|
||||
|
||||
return now.tv_sec * 1000000000LL + now.tv_nsec;
|
||||
return now.tv_sec * 1000000000LL + now.tv_nsec;
|
||||
#endif
|
||||
// RB end
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue