diff --git a/test/core/core_func_common.cpp b/test/core/core_func_common.cpp index e718baff..ee75fbf8 100644 --- a/test/core/core_func_common.cpp +++ b/test/core/core_func_common.cpp @@ -900,11 +900,11 @@ namespace sign std::clock_t Timestamp5 = std::clock(); - std::printf("sign_cmp(rand) Time %d clocks\n", Timestamp1 - Timestamp0); - std::printf("sign_if(rand) Time %d clocks\n", Timestamp2 - Timestamp1); - std::printf("sign_alu1(rand) Time %d clocks\n", Timestamp3 - Timestamp2); - std::printf("sign_alu2(rand) Time %d clocks\n", Timestamp4 - Timestamp3); - std::printf("sign_sub(rand) Time %d clocks\n", Timestamp5 - Timestamp4); + std::printf("sign_cmp(rand) Time %d clocks\n", static_cast(Timestamp1 - Timestamp0)); + std::printf("sign_if(rand) Time %d clocks\n", static_cast(Timestamp2 - Timestamp1)); + std::printf("sign_alu1(rand) Time %d clocks\n", static_cast(Timestamp3 - Timestamp2)); + std::printf("sign_alu2(rand) Time %d clocks\n", static_cast(Timestamp4 - Timestamp3)); + std::printf("sign_sub(rand) Time %d clocks\n", static_cast(Timestamp5 - Timestamp4)); return Error; } @@ -947,11 +947,11 @@ namespace sign std::clock_t Timestamp5 = std::clock(); - std::printf("sign_cmp(linear) Time %d clocks\n", Timestamp1 - Timestamp0); - std::printf("sign_if(linear) Time %d clocks\n", Timestamp2 - Timestamp1); - std::printf("sign_alu1(linear) Time %d clocks\n", Timestamp3 - Timestamp2); - std::printf("sign_alu2(linear) Time %d clocks\n", Timestamp4 - Timestamp3); - std::printf("sign_sub(linear) Time %d clocks\n", Timestamp5 - Timestamp4); + std::printf("sign_cmp(linear) Time %d clocks\n", static_cast(Timestamp1 - Timestamp0)); + std::printf("sign_if(linear) Time %d clocks\n", static_cast(Timestamp2 - Timestamp1)); + std::printf("sign_alu1(linear) Time %d clocks\n", static_cast(Timestamp3 - Timestamp2)); + std::printf("sign_alu2(linear) Time %d clocks\n", static_cast(Timestamp4 - Timestamp3)); + std::printf("sign_sub(linear) Time %d clocks\n", static_cast(Timestamp5 - Timestamp4)); return Error; } @@ -990,13 +990,13 @@ namespace sign std::clock_t Timestamp5 = std::clock(); - std::printf("Sum %d\n", Sum); + std::printf("Sum %d\n", static_cast(Sum)); - std::printf("sign_cmp(linear_cal) Time %d clocks\n", Timestamp1 - Timestamp0); - std::printf("sign_if(linear_cal) Time %d clocks\n", Timestamp2 - Timestamp1); - std::printf("sign_alu1(linear_cal) Time %d clocks\n", Timestamp3 - Timestamp2); - std::printf("sign_alu2(linear_cal) Time %d clocks\n", Timestamp4 - Timestamp3); - std::printf("sign_sub(linear_cal) Time %d clocks\n", Timestamp5 - Timestamp4); + std::printf("sign_cmp(linear_cal) Time %d clocks\n", static_cast(Timestamp1 - Timestamp0)); + std::printf("sign_if(linear_cal) Time %d clocks\n", static_cast(Timestamp2 - Timestamp1)); + std::printf("sign_alu1(linear_cal) Time %d clocks\n", static_cast(Timestamp3 - Timestamp2)); + std::printf("sign_alu2(linear_cal) Time %d clocks\n", static_cast(Timestamp4 - Timestamp3)); + std::printf("sign_sub(linear_cal) Time %d clocks\n", static_cast(Timestamp5 - Timestamp4)); return Error; } diff --git a/test/core/core_func_integer.cpp b/test/core/core_func_integer.cpp index ff6ad378..4a75733e 100644 --- a/test/core/core_func_integer.cpp +++ b/test/core/core_func_integer.cpp @@ -182,7 +182,7 @@ namespace bitfieldReverse else if(Data32[i].Result == FAIL && !Compare) continue; - printf("glm::bitfieldReverse test fail on test %d\n", i); + std::printf("glm::bitfieldReverse test fail on test %d\n", static_cast(i)); return 1; } @@ -205,7 +205,7 @@ namespace bitfieldReverse else if(Data64[i].Result == FAIL && !Compare) continue; - printf("glm::extractfield test fail on test %d\n", i); + std::printf("glm::extractfield test fail on test %d\n", static_cast(i)); return 1; } @@ -351,7 +351,7 @@ namespace findMSB std::clock_t Timestamps2 = std::clock(); - printf("findMSB - 0.9.5: %d clocks\n", Timestamps2 - Timestamps1); + std::printf("findMSB - 0.9.5: %d clocks\n", static_cast(Timestamps2 - Timestamps1)); return Error; } @@ -410,7 +410,7 @@ namespace findMSB std::clock_t Timestamps2 = std::clock(); - printf("findMSB - nlz1: %d clocks\n", Timestamps2 - Timestamps1); + std::printf("findMSB - nlz1: %d clocks\n", static_cast(Timestamps2 - Timestamps1)); return Error; } @@ -919,10 +919,10 @@ namespace bitCount std::clock_t TimeDefault = TimestampsD - TimestampsC; std::clock_t TimeVec4 = TimestampsE - TimestampsD; - printf("bitCount - TimeIf %d\n", TimeIf); - printf("bitCount - TimeVec %d\n", TimeVec); - printf("bitCount - TimeDefault %d\n", TimeDefault); - printf("bitCount - TimeVec4 %d\n", TimeVec4); + std::printf("bitCount - TimeIf %d\n", static_cast(TimeIf)); + std::printf("bitCount - TimeVec %d\n", static_cast(TimeVec)); + std::printf("bitCount - TimeDefault %d\n", static_cast(TimeDefault)); + std::printf("bitCount - TimeVec4 %d\n", static_cast(TimeVec4)); return Error; }