W3C home > Mailing lists > Public > www-international@w3.org > January to March 2014

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 03 Jan 2014 10:34:43 +0000
To: www-international@w3.org
Message-ID: <bug-24198-4285-oSYq0ixipf@http.www.w3.org/Bugs/Public/>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:41:04 UTC