hex.sign_extend¶
sign-extends hex[:signed_n] into hex[:full_n]
Signature¶
def sign_extend full_n, signed_n, hex @ negative, positive { ... }
Defined in hex/math_basic.fj — lines 200–206 (view on GitHub).
Complexity¶
Time:
(full_n - signed_n)(@+4)Space:
(full_n - signed_n)(@+16)
See the complexity glossary for what @, w, dw, dbit, n mean.