Should you be able to initialize a float with a char?

Walter Bright newshound2 at digitalmars.com
Thu May 19 21:44:55 UTC 2022


On 5/19/2022 1:01 PM, Steven Schveighoffer wrote:
> And let the compiler come up with whatever funky stuff it wants to in order to 
> make it fast.

You never write things like:

    a += (b < c);

? I do. And, as I remarked before, GPUs favor this style of coding, as does SIMD 
code, as does cryto code.

Hoping the compiler will transform the code into this style, if it is not 
specified to, is just that, hope :-/

Sometimes this style is not necessarily faster, either, even though the user may 
desire it for crypto reasons.



More information about the Digitalmars-d mailing list