Class: Rubycc::Front::AST::BuiltinBitScan
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::BuiltinBitScan
- Defined in:
- lib/rubycc/front/ast.rb
Overview
"__builtin_ctz/ctzll/clz/clzll ( x )": counts the trailing (ctz) or
leading (clz) zero bits of an integer, typed int. operand is the value
scanned, direction is :forward for ctz or :reverse for clz, and width
is the operand's byte width (4 for the plain form, 8 for the "ll" form).
x == 0 is undefined behavior (gcc), so no zero handling is implied.
token is the builtin keyword.
Instance Attribute Summary collapse
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Attribute Details
#direction ⇒ Object (readonly)
Returns the value of attribute direction
403 404 405 |
# File 'lib/rubycc/front/ast.rb', line 403 def direction @direction end |
#operand ⇒ Object (readonly)
Returns the value of attribute operand
403 404 405 |
# File 'lib/rubycc/front/ast.rb', line 403 def operand @operand end |
#token ⇒ Object (readonly)
Returns the value of attribute token
403 404 405 |
# File 'lib/rubycc/front/ast.rb', line 403 def token @token end |
#width ⇒ Object (readonly)
Returns the value of attribute width
403 404 405 |
# File 'lib/rubycc/front/ast.rb', line 403 def width @width end |