Top Description Fields Constructors Methods
org.lwjgl.util.simd

public Class SSE

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Bindings to SSE macros.

Field Summary

Modifier and TypeField and Description
public static final int
_MM_EXCEPT_DENORM

Exception state.

public static final int
_MM_EXCEPT_DIV_ZERO

Exception state.

public static final int
_MM_EXCEPT_INEXACT

Exception state.

public static final int
_MM_EXCEPT_INVALID

Exception state.

public static final int
_MM_EXCEPT_MASK

Exception state.

public static final int
_MM_EXCEPT_OVERFLOW

Exception state.

public static final int
_MM_EXCEPT_UNDERFLOW

Exception state.

public static final int
_MM_FLUSH_ZERO_MASK

Flush zero mask.

public static final int
_MM_FLUSH_ZERO_OFF

Flush zero mask.

public static final int
_MM_FLUSH_ZERO_ON

Flush zero mask.

public static final int
_MM_MASK_DENORM

Exception mask.

public static final int
_MM_MASK_DIV_ZERO

Exception mask.

public static final int
_MM_MASK_INEXACT

Exception mask.

public static final int
_MM_MASK_INVALID

Exception mask.

public static final int
_MM_MASK_MASK

Exception mask.

public static final int
_MM_MASK_OVERFLOW

Exception mask.

public static final int
_MM_MASK_UNDERFLOW

Exception mask.

public static final int
_MM_ROUND_DOWN

Round mode.

public static final int
_MM_ROUND_MASK

Round mode.

public static final int
_MM_ROUND_NEAREST

Round mode.

public static final int
public static final int
_MM_ROUND_UP

Round mode.

Constructor Summary

AccessConstructor and Description
protected
SSE()

Method Summary

Modifier and TypeMethod and Description
public static native int
_MM_GET_EXCEPTION_MASK()

Returns the exception mask bits from the MXCSR control and status register.

public static native int
_MM_GET_EXCEPTION_STATE()

Returns the exception state bits from the MXCSR control and status register.

public static native int
_MM_GET_FLUSH_ZERO_MODE()

Returns the flush zero bits from the MXCSR control and status register.

public static native int
_MM_GET_ROUNDING_MODE()

Returns the rounding mode bits from the MXCSR control and status register.

public static native void
_MM_SET_EXCEPTION_MASK(int mask)

Sets the exception mask bits of the MXCSR control and status register.

public static native void
_MM_SET_EXCEPTION_STATE(int mask)

Sets the exception state bits of the MXCSR control and status register.

public static native void
_MM_SET_FLUSH_ZERO_MODE(int
the flush-to-zero mode. One of:
FLUSH_ZERO_MASKFLUSH_ZERO_ONFLUSH_ZERO_OFF
mode
)

Sets the flush zero bits of the MXCSR control and status register.

public static native void
_MM_SET_ROUNDING_MODE(int mode)

Sets the rounding mode bits of the MXCSR control and status register.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_MM_EXCEPT_DENORMback to summary
public static final int _MM_EXCEPT_DENORM

Exception state.

_MM_EXCEPT_DIV_ZEROback to summary
public static final int _MM_EXCEPT_DIV_ZERO

Exception state.

_MM_EXCEPT_INEXACTback to summary
public static final int _MM_EXCEPT_INEXACT

Exception state.

_MM_EXCEPT_INVALIDback to summary
public static final int _MM_EXCEPT_INVALID

Exception state.

_MM_EXCEPT_MASKback to summary
public static final int _MM_EXCEPT_MASK

Exception state.

_MM_EXCEPT_OVERFLOWback to summary
public static final int _MM_EXCEPT_OVERFLOW

Exception state.

_MM_EXCEPT_UNDERFLOWback to summary
public static final int _MM_EXCEPT_UNDERFLOW

Exception state.

_MM_FLUSH_ZERO_MASKback to summary
public static final int _MM_FLUSH_ZERO_MASK

Flush zero mask.

_MM_FLUSH_ZERO_OFFback to summary
public static final int _MM_FLUSH_ZERO_OFF

Flush zero mask.

_MM_FLUSH_ZERO_ONback to summary
public static final int _MM_FLUSH_ZERO_ON

Flush zero mask.

_MM_MASK_DENORMback to summary
public static final int _MM_MASK_DENORM

Exception mask.

_MM_MASK_DIV_ZEROback to summary
public static final int _MM_MASK_DIV_ZERO

Exception mask.

_MM_MASK_INEXACTback to summary
public static final int _MM_MASK_INEXACT

Exception mask.

_MM_MASK_INVALIDback to summary
public static final int _MM_MASK_INVALID

Exception mask.

_MM_MASK_MASKback to summary
public static final int _MM_MASK_MASK

Exception mask.

_MM_MASK_OVERFLOWback to summary
public static final int _MM_MASK_OVERFLOW

Exception mask.

_MM_MASK_UNDERFLOWback to summary
public static final int _MM_MASK_UNDERFLOW

Exception mask.

_MM_ROUND_DOWNback to summary
public static final int _MM_ROUND_DOWN

Round mode.

_MM_ROUND_MASKback to summary
public static final int _MM_ROUND_MASK

Round mode.

_MM_ROUND_NEARESTback to summary
public static final int _MM_ROUND_NEAREST

Round mode.

_MM_ROUND_TOWARD_ZEROback to summary
public static final int _MM_ROUND_TOWARD_ZERO

Round mode.

_MM_ROUND_UPback to summary
public static final int _MM_ROUND_UP

Round mode.

Constructor Detail

SSEback to summary
protected SSE()

Method Detail

_MM_GET_EXCEPTION_MASKback to summary
public static native int _MM_GET_EXCEPTION_MASK()

Returns the exception mask bits from the MXCSR control and status register.

Annotations
@NativeType:unsigned int
_MM_GET_EXCEPTION_STATEback to summary
public static native int _MM_GET_EXCEPTION_STATE()

Returns the exception state bits from the MXCSR control and status register.

Annotations
@NativeType:unsigned int
_MM_GET_FLUSH_ZERO_MODEback to summary
public static native int _MM_GET_FLUSH_ZERO_MODE()

Returns the flush zero bits from the MXCSR control and status register.

Annotations
@NativeType:unsigned int
_MM_GET_ROUNDING_MODEback to summary
public static native int _MM_GET_ROUNDING_MODE()

Returns the rounding mode bits from the MXCSR control and status register.

Annotations
@NativeType:unsigned int
_MM_SET_EXCEPTION_MASKback to summary
public static native 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:int

the exception mask. One or more of:

MASK_MASKMASK_INVALIDMASK_DENORMMASK_DIV_ZEROMASK_OVERFLOWMASK_UNDERFLOW
MASK_INEXACT
_MM_SET_EXCEPTION_STATEback to summary
public static native void _MM_SET_EXCEPTION_STATE(int mask)

Sets the exception state bits of the MXCSR control and status register.

Parameters
mask:int

the exception state. One of:

EXCEPT_MASKEXCEPT_INVALIDEXCEPT_DENORMEXCEPT_DIV_ZEROEXCEPT_OVERFLOW
EXCEPT_UNDERFLOWEXCEPT_INEXACT
_MM_SET_FLUSH_ZERO_MODEback to summary
public static native 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:int

the flush-to-zero mode. One of:

FLUSH_ZERO_MASKFLUSH_ZERO_ONFLUSH_ZERO_OFF
_MM_SET_ROUNDING_MODEback to summary
public static native void _MM_SET_ROUNDING_MODE(int mode)

Sets the rounding mode bits of the MXCSR control and status register.

Parameters
mode:int

the rounding mode. One of:

ROUND_MASKROUND_NEARESTROUND_DOWNROUND_UPROUND_TOWARD_ZERO