mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-27 06:27:03 +02:00
we
This commit is contained in:
parent
5e2901391d
commit
ce714a2828
1 changed files with 3 additions and 3 deletions
|
|
@ -311,11 +311,11 @@ u64 WallClock::NsToTicks(std::chrono::nanoseconds ns) const {
|
||||||
#elif defined(HAS_NCE)
|
#elif defined(HAS_NCE)
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
[[nodiscard]] WallClock::FactorType GetFixedPointFactor(u64 num, u64 den) noexcept {
|
[[nodiscard]] Common::WallClock::FactorType GetFixedPointFactor(u64 num, u64 den) noexcept {
|
||||||
return (WallClock::FactorType(num) << 64) / den;
|
return (Common::WallClock::FactorType(num) << 64) / den;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] u64 MultiplyHigh(u64 m, WallClock::FactorType factor) noexcept {
|
[[nodiscard]] u64 MultiplyHigh(u64 m, Common::WallClock::FactorType factor) noexcept {
|
||||||
return static_cast<u64>((m * factor) >> 64);
|
return static_cast<u64>((m * factor) >> 64);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue