79173288

Date: 2024-11-09 17:16:04
Score: 0.5
Natty:
Report link

Looks like I was able to appease GCC by writing my own version of the ternary operator.

Replacing

float x = p ? t : f;

with the cruder

#pragma omp declare simd
static inline float ternary(bool p, const float t, const float f) {
    return p * t + (!p) * f;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: oliversm