Class: CFloatType
- Includes:
- CType
- Defined in:
- lib/tecsgen/core/ctypes.rb
Instance Method Summary collapse
-
#initialize(bit_size) ⇒ CFloatType
constructor
A new instance of CFloatType.
- #to_long ⇒ Object
Methods included from CType
Methods inherited from FloatType
#check, #check_init, #get_bit_size, #get_type_str, #get_type_str_post, #show_tree
Methods inherited from Type
#cast, #check, #check_init, #check_struct_tag, #clear_max, #equal?, #get_ID_str, #get_bit_size, #get_original_type, #get_type_str, #has_pointer?, #has_sized_pointer?, #has_unsized_string?, #is_const?, #is_void?, #is_volatile?, #print_info, print_info_post, #print_info_post, reset_print_info, #set_qualifier, #set_scs, #show_tree
Methods inherited from Node
#cdl_error, #cdl_error2, #cdl_error3, #cdl_info, #cdl_info2, #cdl_warning, #cdl_warning2, #get_locale, #locale_str, #set_locale
Constructor Details
#initialize(bit_size) ⇒ CFloatType
Returns a new instance of CFloatType.
174 175 176 |
# File 'lib/tecsgen/core/ctypes.rb', line 174 def initialize(bit_size) super end |
Instance Method Details
#to_long ⇒ Object
178 179 180 181 182 183 184 |
# File 'lib/tecsgen/core/ctypes.rb', line 178 def to_long if @bit_size != -64 cdl_warning("W9999 long specified for $1", get_type_str) else @bit_size = -128 # @bit_size = -128 : long double end end |