MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / getBitWidth

Method getBitWidth

include/common/types.h:252–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250 }
251
252 uint32_t getBitWidth() const noexcept {
253 switch (Inner.Data.Code) {
254 case TypeCode::I8:
255 return 8U;
256 case TypeCode::I16:
257 return 16U;
258 case TypeCode::I32:
259 case TypeCode::F32:
260 return 32U;
261 case TypeCode::I64:
262 case TypeCode::F64:
263 return 64U;
264 case TypeCode::V128:
265 return 128U;
266 default:
267 // Bit width not available for reftypes.
268 assumingUnreachable();
269 }
270 }
271
272 ValType getNullableRef() const noexcept {
273 assuming(isRefType());

Callers 4

EXPECTED_TRYFunction · 0.80
runArrayInitDataOpMethod · 0.80
arrayNewDataMethod · 0.80
arrayInitDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected