Package org.lwjgl.util.simd
Class SSE
java.lang.Object
org.lwjgl.util.simd.SSE
Bindings to SSE macros.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Exception state.static final int
Exception state.static final int
Exception state.static final int
Exception state.static final int
Exception state.static final int
Exception state.static final int
Exception state.static final int
Flush zero mask.static final int
Flush zero mask.static final int
Flush zero mask.static final int
Exception mask.static final int
Exception mask.static final int
Exception mask.static final int
Exception mask.static final int
Exception mask.static final int
Exception mask.static final int
Exception mask.static final int
Round mode.static final int
Round mode.static final int
Round mode.static final int
Round mode.static final int
Round mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Returns the exception mask bits from the MXCSR control and status register.static int
Returns the exception state bits from the MXCSR control and status register.static int
Returns the flush zero bits from the MXCSR control and status register.static int
Returns the rounding mode bits from the MXCSR control and status register.static void
_MM_SET_EXCEPTION_MASK
(int mask) Sets the exception mask bits of the MXCSR control and status register.static void
_MM_SET_EXCEPTION_STATE
(int mask) Sets the exception state bits of the MXCSR control and status register.static void
_MM_SET_FLUSH_ZERO_MODE
(int mode) Sets the flush zero bits of the MXCSR control and status register.static void
_MM_SET_ROUNDING_MODE
(int mode) Sets the rounding mode bits of the MXCSR control and status register.
-
Field Details
-
_MM_EXCEPT_MASK
public static final int _MM_EXCEPT_MASKException state.- See Also:
-
_MM_EXCEPT_INVALID
public static final int _MM_EXCEPT_INVALIDException state.- See Also:
-
_MM_EXCEPT_DENORM
public static final int _MM_EXCEPT_DENORMException state.- See Also:
-
_MM_EXCEPT_DIV_ZERO
public static final int _MM_EXCEPT_DIV_ZEROException state.- See Also:
-
_MM_EXCEPT_OVERFLOW
public static final int _MM_EXCEPT_OVERFLOWException state.- See Also:
-
_MM_EXCEPT_UNDERFLOW
public static final int _MM_EXCEPT_UNDERFLOWException state.- See Also:
-
_MM_EXCEPT_INEXACT
public static final int _MM_EXCEPT_INEXACTException state.- See Also:
-
_MM_MASK_MASK
public static final int _MM_MASK_MASKException mask.- See Also:
-
_MM_MASK_INVALID
public static final int _MM_MASK_INVALIDException mask.- See Also:
-
_MM_MASK_DENORM
public static final int _MM_MASK_DENORMException mask.- See Also:
-
_MM_MASK_DIV_ZERO
public static final int _MM_MASK_DIV_ZEROException mask.- See Also:
-
_MM_MASK_OVERFLOW
public static final int _MM_MASK_OVERFLOWException mask.- See Also:
-
_MM_MASK_UNDERFLOW
public static final int _MM_MASK_UNDERFLOWException mask.- See Also:
-
_MM_MASK_INEXACT
public static final int _MM_MASK_INEXACTException mask.- See Also:
-
_MM_ROUND_MASK
public static final int _MM_ROUND_MASKRound mode.- See Also:
-
_MM_ROUND_NEAREST
public static final int _MM_ROUND_NEARESTRound mode.- See Also:
-
_MM_ROUND_DOWN
public static final int _MM_ROUND_DOWNRound mode.- See Also:
-
_MM_ROUND_UP
public static final int _MM_ROUND_UPRound mode.- See Also:
-
_MM_ROUND_TOWARD_ZERO
public static final int _MM_ROUND_TOWARD_ZERORound mode.- See Also:
-
_MM_FLUSH_ZERO_MASK
public static final int _MM_FLUSH_ZERO_MASKFlush zero mask.- See Also:
-
_MM_FLUSH_ZERO_ON
public static final int _MM_FLUSH_ZERO_ONFlush zero mask.- See Also:
-
_MM_FLUSH_ZERO_OFF
public static final int _MM_FLUSH_ZERO_OFFFlush zero mask.- See Also:
-
-
Method Details
-
_MM_SET_EXCEPTION_STATE
public static void _MM_SET_EXCEPTION_STATE(int mask) Sets the exception state bits of the MXCSR control and status register.- Parameters:
mask
- the exception state. One of:EXCEPT_MASK
EXCEPT_INVALID
EXCEPT_DENORM
EXCEPT_DIV_ZERO
EXCEPT_OVERFLOW
EXCEPT_UNDERFLOW
EXCEPT_INEXACT
-
_MM_GET_EXCEPTION_STATE
public static int _MM_GET_EXCEPTION_STATE()Returns the exception state bits from the MXCSR control and status register. -
_MM_SET_EXCEPTION_MASK
public static void _MM_SET_EXCEPTION_MASK(int mask) Sets the exception mask bits of the MXCSR control and status register.All six exception mask bits are always affected. Bits not set explicitly are cleared.
- Parameters:
mask
- the exception mask. One or more of:MASK_MASK
MASK_INVALID
MASK_DENORM
MASK_DIV_ZERO
MASK_OVERFLOW
MASK_UNDERFLOW
MASK_INEXACT
-
_MM_GET_EXCEPTION_MASK
public static int _MM_GET_EXCEPTION_MASK()Returns the exception mask bits from the MXCSR control and status register. -
_MM_SET_ROUNDING_MODE
public static void _MM_SET_ROUNDING_MODE(int mode) Sets the rounding mode bits of the MXCSR control and status register.- Parameters:
mode
- the rounding mode. One of:ROUND_MASK
ROUND_NEAREST
ROUND_DOWN
ROUND_UP
ROUND_TOWARD_ZERO
-
_MM_GET_ROUNDING_MODE
public static int _MM_GET_ROUNDING_MODE()Returns the rounding mode bits from the MXCSR control and status register. -
_MM_SET_FLUSH_ZERO_MODE
public static void _MM_SET_FLUSH_ZERO_MODE(int mode) Sets the flush zero bits of the MXCSR control and status register. FTZ sets denormal results from floating-point calculations to zero.FTZ is a method of bypassing IEEE 754 methods of dealing with invalid floating-point numbers due to underflows. This mode is less precise, but much faster.
- Parameters:
mode
- the flush-to-zero mode. One of:FLUSH_ZERO_MASK
FLUSH_ZERO_ON
FLUSH_ZERO_OFF
-
_MM_GET_FLUSH_ZERO_MODE
public static int _MM_GET_FLUSH_ZERO_MODE()Returns the flush zero bits from the MXCSR control and status register.
-