Patch forthcoming.
Created attachment 13479 [details] proposed fix
Comment on attachment 13479 [details] proposed fix r=me That round function looks kinda elaborate, maybe it can be done simpler later.
Committed revision 19968. (In reply to comment #2) > That round function looks kinda elaborate, maybe it can be done simpler later. It's a direct translation of the wording in the spec, but I couldn't find a better way to implement it. I also looked into Mozilla sources for inspiration.