~drizzle-trunk/drizzle/development

Viewing all changes in revision 869.1.16.

  • Committer: Stewart Smith
  • Date: 2009-02-18 11:47:44 UTC
  • mto: This revision was merged to the branch mainline in revision 889.
  • Revision ID: stewart@flamingspork.com-20090218114744-0gjizp7l71yzxjs7
fix func_math on x86 32bit.

ROUND() was calling down to my_double_round which triggered a Gcc 4.3 bug where isinf()
could be inlined to use the 387 FPU register to do the check on the result of the multiplication.
This would do the the check on the 80bit result, not the truncated 64bit result.

See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39228
See http://bugs.mysql.com/bug.php?id=42965

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: