Class: OpenCL::Device::FPConfig

Inherits:
Bitfield
  • Object
show all
Defined in:
lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb

Overview

Bitfield that maps the :cl_device_fp_config type

Instance Method Summary collapse

Methods inherited from Bitfield

#&, #^, #coerce, #flags, #flags=, #include?, #initialize, #inspect, #to_i, #to_int, #to_s, #|

Constructor Details

This class inherits a constructor from OpenCL::Bitfield

Instance Method Details

#namesObject

Returns an Array of String representing the different flags set



1040
1041
1042
1043
1044
1045
1046
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1040

def names
  fs = []
  %w( DENORM INF_NAN ROUND_TO_NEAREST ROUND_TO_ZERO ROUND_TO_INF FMA SOFT_FLOAT CORRECTLY_ROUNDED_DIVIDE_SQRT ).each { |f|
    fs.push(f) if self.include?( self.class.const_get(f) )
  }
  return fs
end

Constant Summary collapse

DENORM =
(1 << 0)
INF_NAN =
(1 << 1)
ROUND_TO_NEAREST =
(1 << 2)
ROUND_TO_ZERO =
(1 << 3)
ROUND_TO_INF =
(1 << 4)
FMA =
(1 << 5)
SOFT_FLOAT =
(1 << 6)
CORRECTLY_ROUNDED_DIVIDE_SQRT =
(1 << 7)