octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52627] Failing BIST tests on Mac OS X


From: Rik
Subject: [Octave-bug-tracker] [bug #52627] Failing BIST tests on Mac OS X
Date: Fri, 8 Dec 2017 23:38:33 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #8, bug #52627 (project octave):

The sort code for this special case is in liboctave/util/oct-cmplx.h.  I
suspect what is going on is that the arg() function for floats is computed
slightly differently with clang's libc++.  And static_cast<float> (M_PI)
probably doesn't match this value.

Example code:


        OCTAVE_FLOAT_TRUNCATE const T ay = std::arg (a);                \
        OCTAVE_FLOAT_TRUNCATE const T by = std::arg (b);                \
        if (ay == static_cast<T> (-M_PI))                               \





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52627>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]