FPValue.cpp 544 B

12345678910111213141516
  1. /* This file is part of the dynarmic project.
  2. * Copyright (c) 2018 MerryMage
  3. * SPDX-License-Identifier: 0BSD
  4. */
  5. #include "dynarmic/common/fp/info.h"
  6. using namespace Dynarmic::FP;
  7. static_assert(FPValue<u32, false, 0, 1>() == 0x3f800000);
  8. static_assert(FPValue<u32, false, -1, 3>() == 0x3fc00000);
  9. static_assert(FPValue<u32, false, 0, 12739812>() == 0x4b4264e4);
  10. static_assert(FPValue<u32, false, -8, 100>() == 0x3ec80000);
  11. static_assert(FPValue<u32, true, 0, 1>() == 0xbf800000);
  12. static_assert(FPValue<u32, false, -1, 1>() == 0x3f000000);