-O flag ; automatic cast in a bitshift

Guillaume Lathoud gsub at glat.info
Mon Oct 1 11:49:56 UTC 2018

On Friday, 21 September 2018 at 01:44:33 UTC, Vladimir Panteleev 
> On Thursday, 20 September 2018 at 11:14:05 UTC, Guillaume FYI, 
> it's undefined in D mainly because the behavior of the actual 
> Intel CPU instruction is undefined in such cases:
> https://c9x.me/x86/html/file_module_x86_id_285.html
> "it is undefined for SHL and SHR instructions where the count 
> is greater than or equal to the size (in bits) of the 
> destination operand".

Thanks, good to know.

More information about the Digitalmars-d-learn mailing list