Commit e549bdf5 authored by Vincent Lefevre's avatar Vincent Lefevre
Browse files

Updated a comment about a clang bug.

parent cfa33ad4
......@@ -191,8 +191,9 @@ extract_double (mpfr_limb_ptr rp, double d)
#ifndef __clang__
man[0] = d;
#else
/* clang produces an invalid exception when d >= 2^63,
see <https://bugs.llvm.org/show_bug.cgi?id=17686>.
/* clang up to version 11 produces an invalid exception when d >= 2^63,
see <https://github.com/llvm/llvm-project/issues/18060>
(old URL: <https://bugs.llvm.org/show_bug.cgi?id=17686>).
Since this is always the case, here, we use the following patch. */
MPFR_STAT_STATIC_ASSERT (GMP_NUMB_BITS == 64);
man[0] = 0x8000000000000000 + (mp_limb_t) (d - 0x8000000000000000);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment