Debian Codegraph @

Source/Core/Common/FPURoundMode.h

raw symbols SCIP
1 // Copyright 2008 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include "Common/CommonTypes.h"
7
8 namespace Common::FPU
9 {
10 enum RoundMode : u32
11 {
12 ROUND_NEAR = 0,
13 ROUND_CHOP = 1,
14 ROUND_UP = 2,
15 ROUND_DOWN = 3
16 };
17
18 void SetSIMDMode(RoundMode rounding_mode, bool non_ieee_mode);
19
20 /*
21 * There are two different flavors of float to int conversion:
22 * _mm_cvtps_epi32() and _mm_cvttps_epi32().
23 *
24 * The first rounds according to the MXCSR rounding bits.
25 * The second one always uses round towards zero.
26 */
27 void SaveSIMDState();
28 void LoadSIMDState();
29 void LoadDefaultSIMDState();
30 } // namespace Common::FPU