> Is a mix really warranted here? Could just use > return result && !(isaNaN || isbNaN) (since the other mix part is just > false I think mix is a bit overkill, albeit it might not really make a > difference). > Actually I think it should be simplified, you don't need to check both > vars for NaN (because if just one is NaN, the comparison(s) will be > false anyway). > so just return result && !isaNaN
This saves 2 instructions, granted that is a minor drop in a very large ocean, but seems fine to just do it. Dave. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev