class AdLint::Cc1::FloatingType

Public Instance Methods

argument_promoted_type() click to toggle source
# File lib/adlint/cc1/type.rb, line 5340
def argument_promoted_type
  subclass_responsibility
end
arithmetic_type_with(type) click to toggle source
# File lib/adlint/cc1/type.rb, line 5344
def arithmetic_type_with(type)
  subclass_responsibility
end
bitfield?() click to toggle source
# File lib/adlint/cc1/type.rb, line 5308
def bitfield?
  false
end
brief_image() click to toggle source
# File lib/adlint/cc1/type.rb, line 5276
def brief_image
  name
end
compatible?(to_type) click to toggle source
# File lib/adlint/cc1/type.rb, line 5288
def compatible?(to_type)
  type.floating? && to_type.min <= min && max <= to_type.max
end
corresponding_signed_type() click to toggle source
# File lib/adlint/cc1/type.rb, line 5348
def corresponding_signed_type
  self # NOTREACHED
end
corresponding_unsigned_type() click to toggle source
# File lib/adlint/cc1/type.rb, line 5352
def corresponding_unsigned_type
  self # NOTREACHED
end
dup() click to toggle source
# File lib/adlint/cc1/type.rb, line 5356
def dup
  subclass_responsibility
end
enum?() click to toggle source
# File lib/adlint/cc1/type.rb, line 5304
def enum?
  false
end
enumerators() click to toggle source
# File lib/adlint/cc1/type.rb, line 5320
def enumerators
  []
end
explicitly_signed?() click to toggle source
# File lib/adlint/cc1/type.rb, line 5316
def explicitly_signed?
  true
end
floating?() click to toggle source
# File lib/adlint/cc1/type.rb, line 5296
def floating?
  true
end
id() click to toggle source
# File lib/adlint/cc1/type.rb, line 5268
def id
  subclass_responsibility
end
image() click to toggle source
# File lib/adlint/cc1/type.rb, line 5272
def image
  name
end
incomplete?() click to toggle source
# File lib/adlint/cc1/type.rb, line 5284
def incomplete?
  false
end
integer?() click to toggle source
# File lib/adlint/cc1/type.rb, line 5292
def integer?
  false
end
integer_conversion_rank() click to toggle source
# File lib/adlint/cc1/type.rb, line 5332
def integer_conversion_rank
  0 # NOTREACHED
end
integer_promoted_type() click to toggle source
# File lib/adlint/cc1/type.rb, line 5336
def integer_promoted_type
  self # NOTREACHED
end
location() click to toggle source
# File lib/adlint/cc1/type.rb, line 5280
def location
  nil
end
max() click to toggle source
# File lib/adlint/cc1/type.rb, line 5328
def max
  (2**fraction_bit_size * 10**(exponent_bit_size - 1)).to_f
end
min() click to toggle source
# File lib/adlint/cc1/type.rb, line 5324
def min
  (-2**fraction_bit_size * 10**(exponent_bit_size - 1)).to_f
end
pointer?() click to toggle source
# File lib/adlint/cc1/type.rb, line 5300
def pointer?
  false
end
signed?() click to toggle source
# File lib/adlint/cc1/type.rb, line 5312
def signed?
  true
end

Private Instance Methods

exponent_bit_size() click to toggle source
# File lib/adlint/cc1/type.rb, line 5365
def exponent_bit_size
  subclass_responsibility
end
fraction_bit_size() click to toggle source
# File lib/adlint/cc1/type.rb, line 5361
def fraction_bit_size
  subclass_responsibility
end