MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / lt_constants

Function lt_constants

src/oomir/interpret.rs:592–594  ·  view source on GitHub ↗
(op1: Constant, op2: Constant)

Source from the content-addressed store, hash-verified

590// Note: Rust/num_bigint << is SHL, >> is SHR (arithmetic/sign-extending for signed)
591pub fn shl_constants(op1: Constant, op2: Constant) -> Option<Constant> {
592 let bi1 = parse_constant_to_bigint(&op1).ok()?;
593 let amount = get_shift_amount(&op2)?;
594 bigint_to_integer_constant_like(bi1 << amount, &op1)
595}
596
597pub fn shr_constants(op1: Constant, op2: Constant) -> Option<Constant> {

Callers 1

Calls 1

compare_constantsFunction · 0.85

Tested by

no test coverage detected