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

Method alignment

cranelift/codegen/src/machinst/vcode.rs:1946–1948  ·  view source on GitHub ↗

Calculate the alignment of the constant data.

(&self)

Source from the content-addressed store, hash-verified

1944
1945 /// Calculate the alignment of the constant data.
1946 pub fn alignment(&self) -> u32 {
1947 if self.as_slice().len() <= 8 { 8 } else { 16 }
1948 }
1949}
1950
1951#[cfg(test)]

Callers 2

register_constantMethod · 0.45
finish_constantsMethod · 0.45

Calls 2

lenMethod · 0.45
as_sliceMethod · 0.45

Tested by

no test coverage detected