MMX“小于"固有掩码 [英] MMX 'less than' intrinsic mask

查看:83
本文介绍了MMX“小于"固有掩码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我该如何掩盖小于MMX内在函数中的?
我只在MMX内部指令中看到大于"内部指令.

How do I mask a less than in MMX intrinsics?
I only see "greater than" intrinsic in MMX intrinsic instructions.

if (x <20)
  b =y+f;
else
  b =y;

推荐答案

如果您具有 大于" 固有的,为什么您不交换操作数吗?

If you have the "greater than" intrinsic, why don''t you swap the operands?

if (20 > x) // Same than x < 20 but using the greater than operator :-)
   b = y + f;
else
   b = y;




我对MMX内在函数不是很熟悉,并且似乎没有小于",但是可以肯定的是,如果您检查大于"和等于",则else是"小于''?

希望这会有所帮助:)
Hi,

I am not very familiar with MMX intrinsics and there does not appear to be a ''less than'', but surely if you check for ''greater than'' and ''equal to'' then the else is ''less than''?

Hope this helps :)


这篇关于MMX“小于"固有掩码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆