[Bug 24198] The Encoding Standard should use bitwise operations instead of multiplication, division and exponentiation when natural

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24198

--- Comment #1 from Henri Sivonen <hsivonen@hsivonen.fi> ---
(In reply to Henri Sivonen from comment #0)
> For encodings other than UTF-8, this editorial style obfuscates whether an
> algorithm can be implemented entirely using ALU operations or whether
> multiplication or division instructions are actually needed, which is
> something that would be nice to see at a glance.

Looks like these tend to be multiplications by a constant, so the answer is
"yes" and one might *hope* a compiler to take care of it.

Anyway, since these operations are most likely things like "take these bits out
of this number and concatenate them to these other bits from this other
number", talking about multiplications instead of masks and shifts obscures
what's happening, which isn't nice.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 3 January 2014 10:34:45 UTC