MCPcopy Create free account
hub / github.com/carbonengine/trinity / DriverVersionToInt64

Function DriverVersionToInt64

trinityal/Tr2DriverUtilities.cpp:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88bool DriverVersionToInt64( const char* driverVersion, int64_t& intVersion )
89{
90 unsigned parts[4];
91 if( sscanf_s( driverVersion, "%u.%u.%u.%u", &parts[0], &parts[1], &parts[2], &parts[3] ) == 4 )
92 {
93 intVersion = ( int64_t( parts[0] ) << 48 ) | ( int64_t( parts[1] ) << 32 ) | ( int64_t( parts[2] ) << 16 ) | int64_t( parts[3] );
94 return true;
95 }
96 return false;
97}
98
99ALResult DoGetDriverVersion( uint32_t deviceId, Tr2VideoDriverInfo& info )
100{

Callers 1

DoGetDriverVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected