Admin message

WARNING! Gitlab maintenance operation scheduled for Monday, 20 April between 12:00 and 14:00 (CET). During this time window, short service interruptions (less than 5 minutes) may occur. Thank you in advance for your understanding.

Divison by square root not instrumented correctly

Basic info

  • Commit SHA: main
  • Platform: all platforms

Bug description

On behalf of @svedberg. One of the limitations of the WMC tool is that it cannot correctly count the complexity of 1 / sqrt() operations. If such operation is present in the source code the WMC tool will count a "division" operation (18 WMOPS) and a "square root" operation (10 WMOPS). However, in reality the tool should only count the "square root" operation. As a temporary solution, the WMC tool has a support for the inv_sqrt() function which shall be used instead of 1 / sqrt().

Assignee Loading
Time tracking Loading