uint128.h 529 B

12345678910111213141516171819
  1. // Copyright 2019 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <utility>
  6. #include "common/common_types.h"
  7. namespace Common {
  8. // This function multiplies 2 u64 values and produces a u128 value;
  9. u128 Multiply64Into128(u64 a, u64 b);
  10. // This function divides a u128 by a u32 value and produces two u64 values:
  11. // the result of division and the remainder
  12. std::pair<u64, u64> Divide128On32(u128 dividend, u32 divisor);
  13. } // namespace Common