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

Method bytes

winch/codegen/src/masm.rs:1073–1081  ·  view source on GitHub ↗

The number of bytes in the operand.

(&self)

Source from the content-addressed store, hash-verified

1071
1072 /// The number of bytes in the operand.
1073 pub fn bytes(&self) -> u32 {
1074 match self {
1075 Self::S8 => 1,
1076 Self::S16 => 2,
1077 Self::S32 => 4,
1078 Self::S64 => 8,
1079 Self::S128 => 16,
1080 }
1081 }
1082
1083 /// The binary logarithm of the number of bits in the operand.
1084 pub fn log2(&self) -> u8 {

Callers 12

disas_with_capstoneFunction · 0.45
pointer_bytesMethod · 0.45
atomic_rmw_seqMethod · 0.45
check_stackMethod · 0.45
pushMethod · 0.45
popMethod · 0.45
check_stackMethod · 0.45
popMethod · 0.45
pushMethod · 0.45
emit_check_alignMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected