From dc7d7d2698139d9d9b0887481c4f50773daa392b Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 8 Apr 2014 18:08:08 -0400 Subject: add support for quadruple precision floating point 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 --- src/libhexfloat/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libhexfloat') diff --git a/src/libhexfloat/lib.rs b/src/libhexfloat/lib.rs index 4897924c55b..72528e96917 100644 --- a/src/libhexfloat/lib.rs +++ b/src/libhexfloat/lib.rs @@ -105,6 +105,7 @@ pub fn expand_syntax_ext(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) -> Some(Ident{ident, span}) => match token::get_ident(ident).get() { "f32" => Some(ast::TyF32), "f64" => Some(ast::TyF64), + "f128" => Some(ast::TyF128), _ => { cx.span_err(span, "invalid floating point type in hexfloat!"); None -- cgit 1.4.1-3-g733a5