diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2014-04-08 18:08:08 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2014-04-22 20:47:28 -0400 |
| commit | dc7d7d2698139d9d9b0887481c4f50773daa392b (patch) | |
| tree | cd48dd32d932cb90c80c536783c4955f5883b068 /src/libsyntax/ext | |
| parent | 09bfb92fdc3ccff42dfcf91b0af368f88dc3e446 (diff) | |
| download | rust-dc7d7d2698139d9d9b0887481c4f50773daa392b.tar.gz rust-dc7d7d2698139d9d9b0887481c4f50773daa392b.zip | |
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
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index 7d86b988077..68b0ef40b16 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -436,7 +436,8 @@ fn mk_token(cx: &ExtCtxt, sp: Span, tok: &token::Token) -> @ast::Expr { LIT_FLOAT(fident, fty) => { let s_fty = match fty { ast::TyF32 => "TyF32".to_owned(), - ast::TyF64 => "TyF64".to_owned() + ast::TyF64 => "TyF64".to_owned(), + ast::TyF128 => "TyF128".to_owned() }; let e_fty = cx.expr_ident(sp, id_ext(s_fty)); |
