about summary refs log tree commit diff
path: root/library/std/src/f16.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2024-03-26 04:02:54 -0400
committerTrevor Gross <tmgross@umich.edu>2024-04-10 13:50:27 -0400
commit143ecc3202e033cf843bc05c06d29cd3e4033497 (patch)
treec4c10a6dd90d1c25eced18379ef89d8eb2204b32 /library/std/src/f16.rs
parent454de78ea3073a284a7a8a41184789f9afa066a3 (diff)
downloadrust-143ecc3202e033cf843bc05c06d29cd3e4033497.tar.gz
rust-143ecc3202e033cf843bc05c06d29cd3e4033497.zip
Add basic f16 and f128 modules
Create empty modules so `rustdoc` has someplace to link to for these
types.
Diffstat (limited to 'library/std/src/f16.rs')
-rw-r--r--library/std/src/f16.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/library/std/src/f16.rs b/library/std/src/f16.rs
new file mode 100644
index 00000000000..c36f9f5d4c6
--- /dev/null
+++ b/library/std/src/f16.rs
@@ -0,0 +1,11 @@
+//! Constants for the `f16` double-precision floating point type.
+//!
+//! *[See also the `f16` primitive type](primitive@f16).*
+//!
+//! Mathematically significant numbers are provided in the `consts` sub-module.
+
+#[cfg(test)]
+mod tests;
+
+#[unstable(feature = "f16", issue = "116909")]
+pub use core::f16::consts;