diff options
| author | bors <bors@rust-lang.org> | 2014-04-22 19:31:35 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-04-22 19:31:35 -0700 |
| commit | bcc3e8c0d44bbbbf752db45a9c85f7ac4b4d61ce (patch) | |
| tree | c57684251a6f1ce4daf4f514c5c7d3d62b083be2 /src/libstd/reflect.rs | |
| parent | 3ec3c092ee185ada1c376f311c9c55b64c49e840 (diff) | |
| parent | dc7d7d2698139d9d9b0887481c4f50773daa392b (diff) | |
auto merge of #13415 : thestinger/rust/f128, r=alexcrichton
This currently requires linking against a library like libquadmath (or libgcc), because compiler-rt barely has any support for this and most hardware does not yet have 128-bit precision floating point. For this reason, it's currently hidden behind a feature gate. When compiler-rt is updated to trunk, some tests can be added for constant evaluation since there will be support for the comparison operators. Closes #13381
Diffstat (limited to 'src/libstd/reflect.rs')
| -rw-r--r-- | src/libstd/reflect.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstd/reflect.rs b/src/libstd/reflect.rs index e64a6b86d02..45f214e26fb 100644 --- a/src/libstd/reflect.rs +++ b/src/libstd/reflect.rs @@ -176,6 +176,14 @@ impl<V:TyVisitor + MovePtr> TyVisitor for MovePtrAdaptor<V> { true } + #[cfg(not(stage0))] + fn visit_f128(&mut self) -> bool { + self.align_to::<f128>(); + if ! self.inner.visit_f128() { return false; } + self.bump_past::<f128>(); + true + } + fn visit_char(&mut self) -> bool { self.align_to::<char>(); if ! self.inner.visit_char() { return false; } |
