Class: AArch64::Instructions::CLS_int
- Inherits:
-
Object
- Object
- AArch64::Instructions::CLS_int
- Defined in:
- lib/aarch64/instructions/cls_int.rb
Overview
CLS – A64 Count Leading Sign bits CLS <Wd>, <Wn> CLS <Xd>, <Xn>
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rd, rn, sf) ⇒ CLS_int
constructor
A new instance of CLS_int.
Constructor Details
#initialize(rd, rn, sf) ⇒ CLS_int
8 9 10 11 12 |
# File 'lib/aarch64/instructions/cls_int.rb', line 8 def initialize rd, rn, sf @rd = rd @rn = rn @sf = sf end |
Instance Method Details
#encode ⇒ Object
14 15 16 |
# File 'lib/aarch64/instructions/cls_int.rb', line 14 def encode CLS_int(@sf, @rn.to_i, @rd.to_i) end |