com.jogamp.opencl
Enum CLDevice.FPConfig

java.lang.Object
  extended by java.lang.Enum<CLDevice.FPConfig>
      extended by 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
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 +ve and –ve infinity rounding modes supported.
ROUND_TO_NEAREST
          round to nearest rounding mode supported.
ROUND_TO_ZERO
          round to zero rounding mode supported.
 
Field Summary
 int CONFIG
          Value of wrapped OpenCL bitfield.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 +ve and –ve 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.

Field Detail

CONFIG

public final int CONFIG
Value of wrapped OpenCL bitfield.

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 name
NullPointerException - if the argument is null

valuesOf

public static EnumSet<CLDevice.FPConfig> valuesOf(int bitfield)
Returns a EnumSet for the given bitfield.