Posts Tagged ‘intrinsics’

Down With fcmp: Conditional Moves For Branchless Math

Branching on floating-point values can be a significant performance penalty. In some cases, using the ternary operator ?: or substituting a conditional-move operator like fsel allows you to make your function branchless and run much faster.