Can XMM registers be used to do any 128 bit integer math? [duplicate]

坚强是说给别人听的谎言 提交于 2019-11-27 08:09:57

问题


My impression is definitely not but perhaps there is a clever trick? Thanks.


回答1:


Not directly, but there are 64 bit arithmetic operations which can be easily combined to perform 128 bit (or greater) precision.




回答2:


The xmm registers can do arithmetics on 8, 16, 32 and 64 bit integers. It doesn't produce a carry flag so you can't extend the precision beyond 64 bits. The extended precision math libraries use the general purpose registers which are 32 bit or 64 bit, depending on the OS.



来源:https://stackoverflow.com/questions/6738283/can-xmm-registers-be-used-to-do-any-128-bit-integer-math

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