Replace ?: by branchless code.