<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Avoid doing equality comparisons between floating expressions.(llvm-project/llvm/tools/llvm-xray/xray-color-helper.cpp:line 98 and 105)"
   href="https://bugs.llvm.org/show_bug.cgi?id=47082">47082</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Avoid doing equality comparisons between floating expressions.(llvm-project/llvm/tools/llvm-xray/xray-color-helper.cpp:line 98 and 105)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llvmc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>info@ustchcs.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Avoid doing equality comparisons between floating expressions.

commit e3546c78cabfbf670391a57766872f0a8e28a423

llvm-project/llvm/tools/llvm-xray/xray-color-helper.cpp:line 98 and 105

    95    double C = Scaled[Max] - Scaled[Min];
    96  
    97    double HPrime =
    98        (C == 0) ? 0 : (Scaled[(Max + 1) % 3] - Scaled[(Max + 2) % 3]) /
C;
    99    HPrime = HPrime + 2.0 * Max;
   100  
   101    double H = (HPrime < 0) ? (HPrime + 6.0) * 60
   102                            : HPrime * 60; // Scale to between 0 and 360
   103    double V = Scaled[Max];
   104  
   105    double S = (V == 0.0) ? 0.0 : C / V;
   106  
   107    return std::make_tuple(H, S, V);
   108  }


Reported by: Ustchcs Toolsets Bugfinder
(bugfinder-5.15: Avoid doing equality comparisons between floating
expressions.)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>