Package com.jogamp.opencl
Enum CLDevice.FPConfig
- java.lang.Object
-
- java.lang.Enum<CLDevice.FPConfig>
-
- com.jogamp.opencl.CLDevice.FPConfig
-
- All Implemented Interfaces:
Serializable
,Comparable<CLDevice.FPConfig>
- Enclosing class:
- CLDevice
public static enum CLDevice.FPConfig extends Enum<CLDevice.FPConfig>
Describes floating-point capability of the device. Zero or more values are possible.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DENORM
denorms are supported.FMA
IEEE754-2008 fused multiply-add is supported.INF_NAN
INF and quiet NaNs are supported.ROUND_TO_INF
round to positive and negative infinity rounding modes supported.ROUND_TO_NEAREST
round to nearest rounding mode supported.ROUND_TO_ZERO
round to zero rounding mode supported.
-
Field Summary
Fields Modifier and Type Field Description int
CONFIG
Value of wrapped OpenCL bitfield.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CLDevice.FPConfig
valueOf(String name)
Returns the enum constant of this type with the specified name.static CLDevice.FPConfig[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static EnumSet<CLDevice.FPConfig>
valuesOf(int bitfield)
Returns a EnumSet for the given bitfield.
-
-
-
Enum Constant Detail
-
DENORM
public static final CLDevice.FPConfig DENORM
denorms are supported.
-
INF_NAN
public static final CLDevice.FPConfig INF_NAN
INF and quiet NaNs are supported.
-
ROUND_TO_NEAREST
public static final CLDevice.FPConfig ROUND_TO_NEAREST
round to nearest rounding mode supported.
-
ROUND_TO_INF
public static final CLDevice.FPConfig ROUND_TO_INF
round to positive and negative infinity rounding modes supported.
-
ROUND_TO_ZERO
public static final CLDevice.FPConfig ROUND_TO_ZERO
round to zero rounding mode supported.
-
FMA
public static final CLDevice.FPConfig FMA
IEEE754-2008 fused multiply-add is supported.
-
-
Method Detail
-
values
public static CLDevice.FPConfig[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CLDevice.FPConfig c : CLDevice.FPConfig.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CLDevice.FPConfig valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
valuesOf
public static EnumSet<CLDevice.FPConfig> valuesOf(int bitfield)
Returns a EnumSet for the given bitfield.
-
-