2020-12-28 10:15:37 -05:00
|
|
|
/* This file is part of the dynarmic project.
|
|
|
|
* Copyright (c) 2018 MerryMage
|
|
|
|
* SPDX-License-Identifier: 0BSD
|
|
|
|
*/
|
|
|
|
|
2021-05-30 02:36:49 -04:00
|
|
|
#include "dynarmic/common/fp/info.h"
|
2020-12-28 10:15:37 -05:00
|
|
|
|
|
|
|
using namespace Dynarmic::FP;
|
|
|
|
|
|
|
|
static_assert(FPValue<u32, false, 0, 1>() == 0x3f800000);
|
|
|
|
static_assert(FPValue<u32, false, -1, 3>() == 0x3fc00000);
|
|
|
|
static_assert(FPValue<u32, false, 0, 12739812>() == 0x4b4264e4);
|
|
|
|
static_assert(FPValue<u32, false, -8, 100>() == 0x3ec80000);
|
|
|
|
static_assert(FPValue<u32, true, 0, 1>() == 0xbf800000);
|
|
|
|
static_assert(FPValue<u32, false, -1, 1>() == 0x3f000000);
|