Browse Source

fixme removed; tried direct comparison and result is worse (on x64)

pull/2/head
Sami Vaarala 11 years ago
parent
commit
204aec4a58
  1. 2
      src/duk_js_ops.c

2
src/duk_js_ops.c

@ -486,7 +486,7 @@ static int duk__js_samevalue_number(double x, double y) {
DUK_ASSERT(DUK_FPCLASSIFY(x) != DUK_FP_NAN);
DUK_ASSERT(DUK_FPCLASSIFY(y) != DUK_FP_NAN);
/* FIXME: try direct zero comparison */
/* Using classification has smaller footprint than direct comparison. */
if (DUK_UNLIKELY(cx == DUK_FP_ZERO && cy == DUK_FP_ZERO)) {
/* Note: cannot assume that a non-zero return value of signbit() would
* always be the same -- hence cannot (portably) use something like:

Loading…
Cancel
Save