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