Class: AArch64::Instructions::CLZ_int

Inherits:
Object
  • Object
show all
Defined in:
lib/aarch64/instructions/clz_int.rb

Overview

CLZ – A64 Count Leading Zeros CLZ <Wd>, <Wn> CLZ <Xd>, <Xn>

Instance Method Summary collapse

Constructor Details

#initialize(rd, rn, sf) ⇒ CLZ_int

Returns a new instance of CLZ_int.



8
9
10
11
12
# File 'lib/aarch64/instructions/clz_int.rb', line 8

def initialize rd, rn, sf
  @rd = rd
  @rn = rn
  @sf = sf
end

Instance Method Details

#encodeObject



14
15
16
# File 'lib/aarch64/instructions/clz_int.rb', line 14

def encode
  CLZ_int(@sf, @rn.to_i, @rd.to_i)
end