Review Request 114455: kjs: Implement ES6 Math.imul

Commit Hook null at kde.org
Thu Jan 16 17:56:30 GMT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/114455/#review47528
-----------------------------------------------------------


This review has been submitted with commit 15b0b8d8d5bf59dee4a5260aef3c6ed03d36b6a5 by Bernd Buschinski to branch KDE/4.12.

- Commit Hook


On Dec. 22, 2013, 7:34 p.m., Bernd Buschinski wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/114455/
> -----------------------------------------------------------
> 
> (Updated Dec. 22, 2013, 7:34 p.m.)
> 
> 
> Review request for kdelibs.
> 
> 
> Repository: kdelibs
> 
> 
> Description
> -------
> 
> kjs: Implement ES6 Math.imul
> 
> I admit I am totally lost here, I need help, the specs just confuse me. The code doesn't look like it does anything useful.
> 
> step 1 to 4 is just getting the values.
> a and b must be a uint32_t.
> 
> 5. Let product be (a * b) modulo 2^32.
> 6. If product ? 2^31, return product - 2^32, otherwise return product.
> 
> (Taken from ES6 draft 08.11.2013)
> 
> This is the part I don't understand at all.
> I am not even sure about the product datatype.
> 
> Also NOTE: the JSC and firefox implementation look totally different and both return different values in highvalue cases, so I rather not trust them.
> 
> 
> Diffs
> -----
> 
>   kjs/math_object.h 3d193dd 
>   kjs/math_object.cpp 89835e5 
> 
> Diff: https://git.reviewboard.kde.org/r/114455/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Bernd Buschinski
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20140116/a0ed4368/attachment.htm>


More information about the kde-core-devel mailing list