Applied Astyle

This commit is contained in:
Robert Beckebans 2020-07-14 18:42:45 +02:00
parent eeff8100e0
commit 3960b88cc4
2 changed files with 6 additions and 6 deletions

View file

@ -643,7 +643,7 @@ extern "C"
pngPtr->io_ptr = ( ( byte* ) pngPtr->io_ptr ) + length;
#else
// There is a get_io_ptr but not a set_io_ptr.. Therefore we need some tmp storage here.
byte **ioptr = (byte **)png_get_io_ptr(pngPtr);
byte** ioptr = ( byte** )png_get_io_ptr( pngPtr );
memcpy( data, *ioptr, length );
*ioptr += length;
#endif
@ -794,7 +794,7 @@ extern "C"
memcpy( ( byte* )pngPtr->io_ptr, data, length );
pngPtr->io_ptr = ( ( byte* ) pngPtr->io_ptr ) + length;
#else
byte **ioptr = (byte**)png_get_io_ptr(pngPtr);
byte** ioptr = ( byte** )png_get_io_ptr( pngPtr );
memcpy( *ioptr, data, length );
*ioptr += length;
#endif

View file

@ -262,14 +262,14 @@ void Sys_CPUCount( int& numLogicalCPUCores, int& numPhysicalCPUCores, int& numCP
pos = strchr( buf + pos, '\n' ) - buf + 1;
}
if( CPUCoresIsFound == false && SiblingsIsFound == false)
if( CPUCoresIsFound == false && SiblingsIsFound == false )
{
common->Printf( "failed parsing /proc/cpuinfo\n" );
common->Printf( "alternative method used\n" );
s_numPhysicalCPUCores = sysconf(_SC_NPROCESSORS_CONF); // _SC_NPROCESSORS_ONLN may not be reliable on Android
s_numPhysicalCPUCores = sysconf( _SC_NPROCESSORS_CONF ); // _SC_NPROCESSORS_ONLN may not be reliable on Android
s_numLogicalCPUCores = s_numPhysicalCPUCores; // hack for CPU without Hyper-Threading (HT) technology
}
else if( CPUCoresIsFound == true && SiblingsIsFound == false)
else if( CPUCoresIsFound == true && SiblingsIsFound == false )
{
s_numLogicalCPUCores = s_numPhysicalCPUCores; // hack for CPU without Hyper-Threading (HT) technology
}
@ -278,7 +278,7 @@ void Sys_CPUCount( int& numLogicalCPUCores, int& numPhysicalCPUCores, int& numCP
{
common->Printf( "failed to read /proc/cpuinfo\n" );
common->Printf( "alternative method used\n" );
s_numPhysicalCPUCores = sysconf(_SC_NPROCESSORS_CONF); // _SC_NPROCESSORS_ONLN may not be reliable on Android
s_numPhysicalCPUCores = sysconf( _SC_NPROCESSORS_CONF ); // _SC_NPROCESSORS_ONLN may not be reliable on Android
s_numLogicalCPUCores = s_numPhysicalCPUCores; // hack for CPU without Hyper-Threading (HT) technology
}