Re:GCC: the impressive and the disappointing
by haberman on Saturday March 05, 2011 @03:05PM
(#2292222)
The union is irrelevant, even with a union the compiler eliminated the branch in another test I ran where both functions had the same prototype. I'm on an iPad at the moment so can't verify, but I'd be willing to bet that exactly the same code would be generated if the two function pointers were passed as separate parameters (ie not in a union)
[ Parent
| on HN ]
There are no comments on this comment yet.