MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / fmt

Method fmt

cranelift/codegen/src/ir/immediates.rs:151–159  ·  view source on GitHub ↗
(&self, f: &mut Formatter)

Source from the content-addressed store, hash-verified

149
150impl Display for Imm64 {
151 fn fmt(&self, f: &mut Formatter) -> fmt::Result {
152 let x = self.0;
153 if x < 10_000 {
154 // Use decimal for small and negative numbers.
155 write!(f, "{x}")
156 } else {
157 write_hex(x as u64, f)
158 }
159 }
160}
161
162/// Parse a 64-bit signed number.

Callers

nothing calls this directly

Calls 4

write_hexFunction · 0.85
fromFunction · 0.85
OkFunction · 0.85
absMethod · 0.80

Tested by

no test coverage detected