extern crate self as go_engine;
use crate::ffi::*;
use go_vm::types::*;
#[derive(Ffi)]
pub struct BitsFfi;
#[ffi_impl]
impl BitsFfi {
fn ffi_f32_to_bits(f: f32) -> u32 {
u32::from_be_bytes(f.to_be_bytes())
}
fn ffi_f32_from_bits(u: u32) -> f32 {
f32::from_be_bytes(u.to_be_bytes())
}
fn ffi_f64_to_bits(f: f64) -> u64 {
u64::from_be_bytes(f.to_be_bytes())
}
fn ffi_f64_from_bits(u: u64) -> f64 {
f64::from_be_bytes(u.to_be_bytes())
}
}