diff options
author | Lioncash <mathew1800@gmail.com> | 2018-04-26 20:46:54 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-04-26 21:37:16 +0200 |
commit | c33755e2b993c30b68920a578af9c9d0f5fbdc2f (patch) | |
tree | ff0d274c8b1305610162f691f9d32088045b8f58 /src/core/core_timing.h | |
parent | Merge pull request #401 from lioncash/gdbstub (diff) | |
download | yuzu-c33755e2b993c30b68920a578af9c9d0f5fbdc2f.tar yuzu-c33755e2b993c30b68920a578af9c9d0f5fbdc2f.tar.gz yuzu-c33755e2b993c30b68920a578af9c9d0f5fbdc2f.tar.bz2 yuzu-c33755e2b993c30b68920a578af9c9d0f5fbdc2f.tar.lz yuzu-c33755e2b993c30b68920a578af9c9d0f5fbdc2f.tar.xz yuzu-c33755e2b993c30b68920a578af9c9d0f5fbdc2f.tar.zst yuzu-c33755e2b993c30b68920a578af9c9d0f5fbdc2f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core_timing.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index b9eb38ea4..26e4b1134 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h @@ -51,11 +51,11 @@ inline s64 usToCycles(int us) { inline s64 usToCycles(s64 us) { if (us / 1000000 > MAX_VALUE_TO_MULTIPLY) { - LOG_ERROR(Core_Timing, "Integer overflow, use max value"); + NGLOG_ERROR(Core_Timing, "Integer overflow, use max value"); return std::numeric_limits<s64>::max(); } if (us > MAX_VALUE_TO_MULTIPLY) { - LOG_DEBUG(Core_Timing, "Time very big, do rounding"); + NGLOG_DEBUG(Core_Timing, "Time very big, do rounding"); return BASE_CLOCK_RATE * (us / 1000000); } return (BASE_CLOCK_RATE * us) / 1000000; @@ -63,11 +63,11 @@ inline s64 usToCycles(s64 us) { inline s64 usToCycles(u64 us) { if (us / 1000000 > MAX_VALUE_TO_MULTIPLY) { - LOG_ERROR(Core_Timing, "Integer overflow, use max value"); + NGLOG_ERROR(Core_Timing, "Integer overflow, use max value"); return std::numeric_limits<s64>::max(); } if (us > MAX_VALUE_TO_MULTIPLY) { - LOG_DEBUG(Core_Timing, "Time very big, do rounding"); + NGLOG_DEBUG(Core_Timing, "Time very big, do rounding"); return BASE_CLOCK_RATE * static_cast<s64>(us / 1000000); } return (BASE_CLOCK_RATE * static_cast<s64>(us)) / 1000000; @@ -83,11 +83,11 @@ inline s64 nsToCycles(int ns) { inline s64 nsToCycles(s64 ns) { if (ns / 1000000000 > MAX_VALUE_TO_MULTIPLY) { - LOG_ERROR(Core_Timing, "Integer overflow, use max value"); + NGLOG_ERROR(Core_Timing, "Integer overflow, use max value"); return std::numeric_limits<s64>::max(); } if (ns > MAX_VALUE_TO_MULTIPLY) { - LOG_DEBUG(Core_Timing, "Time very big, do rounding"); + NGLOG_DEBUG(Core_Timing, "Time very big, do rounding"); return BASE_CLOCK_RATE * (ns / 1000000000); } return (BASE_CLOCK_RATE * ns) / 1000000000; @@ -95,11 +95,11 @@ inline s64 nsToCycles(s64 ns) { inline s64 nsToCycles(u64 ns) { if (ns / 1000000000 > MAX_VALUE_TO_MULTIPLY) { - LOG_ERROR(Core_Timing, "Integer overflow, use max value"); + NGLOG_ERROR(Core_Timing, "Integer overflow, use max value"); return std::numeric_limits<s64>::max(); } if (ns > MAX_VALUE_TO_MULTIPLY) { - LOG_DEBUG(Core_Timing, "Time very big, do rounding"); + NGLOG_DEBUG(Core_Timing, "Time very big, do rounding"); return BASE_CLOCK_RATE * (static_cast<s64>(ns) / 1000000000); } return (BASE_CLOCK_RATE * static_cast<s64>(ns)) / 1000000000; |