Mercurial > hg > octave-nkf
diff liboctave/oct-inttypes.cc @ 8293:ad5bb02d267a
workaround missing std::abs(int64_t) in MSVC
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 30 Oct 2008 20:12:28 +0100 |
parents | cf59d542f33e |
children | c374691576f6 |
line wrap: on
line diff
--- a/liboctave/oct-inttypes.cc +++ b/liboctave/oct-inttypes.cc @@ -196,7 +196,7 @@ // (as above) and impose the sign. // FIXME: Can we do something faster if we HAVE_FAST_INT_OPS? - uint64_t usx = std::abs (x), usy = std::abs (y); + uint64_t usx = octave_int_abs (x), usy = octave_int_abs (y); bool positive = (x < 0) == (y < 0); // Get upper words @@ -454,7 +454,7 @@ dblesplit (y, sign, my, e); uint32_t w[4]; sign = (sign != (x.value () < 0)); - umul128 (std::abs (x.value ()), my, w); + umul128 (octave_int_abs (x.value ()), my, w); octave_int64 res = octave_int64::zero; for (short i = 0; i < 4; i++) {