MCPcopy Create free account
hub / github.com/dcleblanc/SafeInt / MultVerifyIntInt64

Function MultVerifyIntInt64

Archive/releases/5/MulTest.cpp:1216–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1214};
1215
1216void MultVerifyIntInt64()
1217{
1218 size_t i;
1219
1220 for( i = 0; i < sizeof(int_int64)/sizeof(int_int64[0]); ++i )
1221 {
1222 __int32 ret;
1223 if( SafeMultiply(int_int64[i].x, int_int64[i].y, ret) != int_int64[i].fExpected )
1224 {
1225 //assert(false);
1226 printf("Error in case %I64X, %I64X, expected = %s\n", int_int64[i].x, int_int64[i].y, int_int64[i].fExpected ? "true" : "false");
1227 }
1228 }
1229}
1230
1231MultTest< __int32, unsigned __int64 > int_uint64[] =
1232{

Callers 1

MultVerifyFunction · 0.70

Calls 1

SafeMultiplyFunction · 0.70

Tested by

no test coverage detected