oxilean-runtime 0.1.2

OxiLean runtime - Memory management, closures, I/O, and task scheduling
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! # RtObject - float_bits_group Methods
//!
//! This module contains method implementations for `RtObject`.
//!
//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)

use super::functions::{PAYLOAD_MASK, TAG_FLOAT_BITS};
use super::rtobject_type::RtObject;

impl RtObject {
    /// Create a float from reduced-precision bits.
    pub fn float_bits(bits: u64) -> Self {
        RtObject {
            bits: ((TAG_FLOAT_BITS as u64) << 56) | (bits & PAYLOAD_MASK),
        }
    }
}