I'm writting a series of anonymous functions for an objective-C project (i.e. these functions are not class specific / implementation is hidden) and I came across an interesting issue...
I have a macro function: div(c)((CGFloat)c/255.0f) This usage will almost always be something like div(0.0f), but others may not know that it takes a float so div(0) is possible
and the question I have is this: when variables are explicitly cast and the variable is of the same type as the cast is any performance lost to the cast?