oxilean_runtime/object/rtobject_float_bits_group.rs
1//! # RtObject - float_bits_group Methods
2//!
3//! This module contains method implementations for `RtObject`.
4//!
5//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
6
7use super::functions::{PAYLOAD_MASK, TAG_FLOAT_BITS};
8use super::rtobject_type::RtObject;
9
10impl RtObject {
11 /// Create a float from reduced-precision bits.
12 pub fn float_bits(bits: u64) -> Self {
13 RtObject {
14 bits: ((TAG_FLOAT_BITS as u64) << 56) | (bits & PAYLOAD_MASK),
15 }
16 }
17}