Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Overloading operators of built-in types

$
0
0
Why is it possible to overload operators for __m128 (although Microsoft didn't defined any operators for __m128) with the MSVC++ compiler? It seems strange compared to other built-in types such as float, but these are of course part of the C++ standard whereas __m128 isn't. inline __m128 & __vectorcall operator+=(__m128 &v1, const __m128 &v2) { v1 = _mm_add_ps(v1, v2); return v1; }

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>