MCPcopy Create free account
hub / github.com/WebAssembly/wabt / F32ToJS

Function F32ToJS

test/gen-spec-js.py:85–92  ·  view source on GitHub ↗
(f32_bits)

Source from the content-addressed store, hash-verified

83
84
85def F32ToJS(f32_bits):
86 assert not IsNaNF32(f32_bits)
87 if f32_bits == F32_INF:
88 return 'Infinity'
89 elif f32_bits == F32_NEG_INF:
90 return '-Infinity'
91 else:
92 return 'f32(%s)' % ReinterpretF32(f32_bits)
93
94
95def IsNaNF64(f64_bits):

Callers 1

_ConstantMethod · 0.85

Calls 2

IsNaNF32Function · 0.70
ReinterpretF32Function · 0.70

Tested by

no test coverage detected