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

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:36 UTC