Example #1
0
def f32_const(vm, args):
    vm.push_f32(float32(args))
Example #2
0
 def pop_f32(self):
     val = self.pop_u64()
     val = struct.unpack('>f', struct.pack('>l', val))[0]
     return float32(val)
Example #3
0
def f32_demote_f64(vm, _):
    vm.push_f32(float32(vm.pop_f64()))
Example #4
0
def f32_convert_i64u(vm, _):
    vm.push_f32(float32(vm.pop_u64()))
Example #5
0
def f32_convert_i64s(vm, _):
    vm.push_f32(float32(vm.pop_s64()))
Example #6
0
def f32_convert_i32u(vm, _):
    vm.push_f32(float32(vm.pop_u32()))
Example #7
0
def f32_convert_i32s(vm, _):
    vm.push_f32(float32(vm.pop_s32()))