C style cast versus intrinsic cast

北城以北 提交于 2019-12-13 14:19:39

问题


Let's assume i have defined __m256d x and that I want to extract the lower 128-bits. I would do:

__m128d xlow = _mm256_castpd256_pd128(x);

However, I recently saw someone do:

__m128d xlow = (__m128d) x

Is there a prefered method to use for the cast? Why use the first method?

来源:https://stackoverflow.com/questions/20401413/c-style-cast-versus-intrinsic-cast

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!