Only if it's something that the authors of the Standard hadn't expected to be supported by any compiler writers who weren't being deliberately obtuse. Unfortunately, the authors of the Standard are unwilling to make clear that the Standard was never intended to forbid all of the stupid things compilers might do that would make them unsuitable for many purposes, but instead relied upon compiler writers being capable of exercising sound judgment in such things. The authors of the Standard have said that they'd expect most compilers to process something like:rainwarrior wrote:Also if you wait long enough things that everybody implements anyway do usually eventually make it into the standard spec.
Code: Select all
unsigned mul_mod_65536(unsigned short x, unsigned short y) { return (x*y) & 0xFFFF; }