hex.signΒΆ
if number[:n] < 0 jump to neg, else jump to zpos (Zero POSitive).
SignatureΒΆ
def sign n, number, neg, zpos { ... }
Defined in hex/cond_jumps.fj β lines 67β69 (view on GitHub).
ComplexityΒΆ
Time:
@-1Space:
@+15
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def sign n, number, neg, zpos {
.if_flags number+(n-1)*dw, 0xff00, zpos, neg
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
hex.absinhex/math_basic.fjhex.sign_extendinhex/math_basic.fjhex.print_intinhex/output.fj