4 ms·
The actual argument there is that most instructions with explicit, specified output registers have exactly one output register (which is mutated) where as most
by Veserv 2y ago
The actual argument there is that most instructions with explicit, specified output registers have exactly one output register (which is mutated) where as most have multiple, non-mutated input registers. Of the instructions with multiple mutated output registers, most encode 1 or 0 (I am just going by memory here) output registers with the remaining being implicit.
- lupire 2y agoGoogle C++ guide says to put mutable parameters last, but I've seen other style guides say the opposite.
- wakawaka28 2y agoIf your mutable thing is mandatory, then I think it should go first. Otherwise, you will be in a strange position when there are default arguments. The mutable thing would then be sandwiched between immutables. Of course if your mutable parameter is optional, it must be after all the required parameters. The argument above applies neatly to assembly instructions, which generally change one thing.