An imm12 occupies bits 10-21: byte 1 takes six bits scaled by four, byte 2 the rest.
608def aarch64Immediate12Byte1 =
609 (lambda unrestricted value : Nat .
610 (naturalMultiply (naturalModuloUnchecked value aarch64SixtyFour) aarch64Four))The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.