diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-07 23:30:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-07 23:30:11 +0200 |
| commit | c8f5136fe84c3cced0ac1ef57a3f82983604167a (patch) | |
| tree | 5cebe2b4abc30cf5e0ac3ab5872701de86e0af24 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 0b8cb4a1ebdf3bb9b03f7befe48b3d5e36ba080b (diff) | |
| parent | ba2577f23c0014c171235692ca4d8b6b71fbce7e (diff) | |
| download | rust-c8f5136fe84c3cced0ac1ef57a3f82983604167a.tar.gz rust-c8f5136fe84c3cced0ac1ef57a3f82983604167a.zip | |
Rollup merge of #129555 - RalfJung:const_float_bits_conv, r=dtolnay
stabilize const_float_bits_conv
This stabilizes `const_float_bits_conv`, and thus fixes https://github.com/rust-lang/rust/issues/72447. With https://github.com/rust-lang/rust/pull/128596 having landed, this is entirely a libs-only question now.
```rust
impl f32 {
pub const fn to_bits(self) -> u32;
pub const fn from_bits(v: u32) -> Self;
pub const fn to_be_bytes(self) -> [u8; 4];
pub const fn to_le_bytes(self) -> [u8; 4]
pub const fn to_ne_bytes(self) -> [u8; 4];
pub const fn from_be_bytes(bytes: [u8; 4]) -> Self;
pub const fn from_le_bytes(bytes: [u8; 4]) -> Self;
pub const fn from_ne_bytes(bytes: [u8; 4]) -> Self;
}
impl f64 {
pub const fn to_bits(self) -> u64;
pub const fn from_bits(v: u64) -> Self;
pub const fn to_be_bytes(self) -> [u8; 8];
pub const fn to_le_bytes(self) -> [u8; 8]
pub const fn to_ne_bytes(self) -> [u8; 8];
pub const fn from_be_bytes(bytes: [u8; 8]) -> Self;
pub const fn from_le_bytes(bytes: [u8; 8]) -> Self;
pub const fn from_ne_bytes(bytes: [u8; 8]) -> Self;
}
````
Cc `@rust-lang/wg-const-eval` `@rust-lang/libs-api`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
