mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
19 lines
303 B
C++
19 lines
303 B
C++
#pragma once
|
|
|
|
#include "util/types.hpp"
|
|
|
|
// Floating-point rounding mode (for both PPU and SPU)
|
|
enum FPSCR_RN
|
|
{
|
|
FPSCR_RN_NEAR = 0,
|
|
FPSCR_RN_ZERO = 1,
|
|
FPSCR_RN_PINF = 2,
|
|
FPSCR_RN_MINF = 3,
|
|
};
|
|
|
|
// Get the exponent of a float
|
|
inline int fexpf(float x)
|
|
{
|
|
return (std::bit_cast<u32>(x) >> 23) & 0xff;
|
|
}
|