[cfe-commits] r47850 - /cfe/trunk/Headers/mmintrin.h

Mike Stump mrs at apple.com
Mon Mar 3 17:03:48 PST 2008


On Mar 3, 2008, at 4:43 PM, Eli Friedman wrote:
> why does always_inline matter, though?

Because users expect them to be inlined.  When debugging for example,  
they want to know they are in routine foo, if they are in routine foo,  
even when there is little debug information.

> Actually, I just realized an issue with the current implementation:  
> shouldn't the functions in mmintrin.h actually be static inline?

No, that won't work for C99+, as that then prevents these routines  
from being used in inline functions.  :-(  For non-c99 languages, yes,  
I'd argue that static inline is the right choice.

> We don't ever want to depend on an external definition.

:-)  If they are always inline, it wouldn't be much of a  
problem.  :-)  As I recall, the docs give us the latitude to reject  
when someone wants the address of one of them.



More information about the cfe-commits mailing list