[Mesa-dev] Omission? mesa-10.5.6

Roland Scheidegger sroland at vmware.com
Mon May 25 12:31:14 PDT 2015


This case wasn't dealing with floats, though.
That said I guess it's a pointless discussion. If the compiler doesn't
think it's a good idea I'll just add the parentheses just to shut it up...

Roland

Am 25.05.2015 um 21:19 schrieb Axel Davy:
> If one side is NaN, then
> !(x == y) is true, whereas x != y is false
> 
> On 25/05/2015 21:01, Ilia Mirkin wrote :
>> On Mon, May 25, 2015 at 2:53 PM, Matt Turner <mattst88 at gmail.com> wrote:
>>
>>> It's that the compiler thinks that (!x == y) is a typo for !(x == y).
>>> I have to say, I think the first does look strange.
>> I dunno... the second looks way stranger. x != y seems way more
>> natural. While there's no substantially better way to write !x == y.
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.freedesktop.org_mailman_listinfo_mesa-2Ddev&d=BQIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=Vjtt0vs_iqoI31UfJxBl7yv9I2FeiaeAYgMTLKRBc_I&m=rqTsSnm2qPfEn8Y0nX8pcSIawnacyg9OIdUGQyiZXxw&s=95kHFb9NIs7yyTx10KUNYT5WZAnyzdOCXz_5ZIaPFTU&e=
> 



More information about the mesa-dev mailing list