Applied astyle formatting

This commit is contained in:
Robert Beckebans 2020-11-05 01:32:50 +01:00
parent 57e4c66153
commit 9349b280cc
3 changed files with 10 additions and 10 deletions

View file

@ -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();

View file

@ -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;
}
/*

View file

@ -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
}