Class: AArch64::Instructions::CRC32
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::CRC32
- Defined in:
- lib/aarch64/instructions/crc32.rb
Overview
CRC32B, CRC32H, CRC32W, CRC32X – A64 CRC32 checksum CRC32B <Wd>, <Wn>, <Wm> CRC32H <Wd>, <Wn>, <Wm> CRC32W <Wd>, <Wn>, <Wm> CRC32X <Wd>, <Wn>, <Xm>
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rd, rn, rm, sz, sf) ⇒ CRC32
constructor
A new instance of CRC32.
Constructor Details
#initialize(rd, rn, rm, sz, sf) ⇒ CRC32
Returns a new instance of CRC32.
10 11 12 13 14 15 16 |
# File 'lib/aarch64/instructions/crc32.rb', line 10 def initialize rd, rn, rm, sz, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) @sz = check_mask(sz, 0x03) @sf = check_mask(sf, 0x01) end |
Instance Method Details
#encode(_) ⇒ Object
18 19 20 |
# File 'lib/aarch64/instructions/crc32.rb', line 18 def encode _ CRC32(@sf, @rm, @sz, @rn, @rd) end |