On x86_64, the double version of the remainder function raises the inexact exception in cases such as remainder (3.0, 2.0). This function's result is always exact; it should not raise the inexact exception.
Fixed for 2.18 by: commit bb38759d6dc78b1818f5d23129a362d6f5aba267 Author: Joseph Myers <joseph@codesourcery.com> Date: Fri May 17 19:04:08 2013 +0000 Fix remainder exceptions and directed-rounding results (bugs 15480, 15485).