-O flag ; automatic cast in a bitshift

Vladimir Panteleev thecybershadow.lists at gmail.com
Fri Sep 21 01:44:33 UTC 2018


On Thursday, 20 September 2018 at 11:14:05 UTC, Guillaume Lathoud 
wrote:
> Thanks!

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".



More information about the Digitalmars-d-learn mailing list