class RubyRTL::RIntLit

Public Class Methods

new(val) click to toggle source
Calls superclass method RubyRTL::Literal::new
# File lib/ruby_rtl/ast.rb, line 248
def initialize val
  val=val==0 ? 1 : val
  bitwidth=Math.log2(val).floor + 1
  super(val,RIntType.new(bitwidth))
end