[Mesa-dev] [Bug 106232] LLVM unit tests have error in random number handling

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 26 02:25:54 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106232

Roland Scheidegger <sroland at vmware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jfonseca at vmware.com,
                   |                            |sroland at vmware.com

--- Comment #1 from Roland Scheidegger <sroland at vmware.com> ---
I think for "normal" unsigned type it should still cover the whole range
because of the "value += (double)(mask & rand());" line above? So the numbers
covered whole uint range before.
This line is weird though indeed and you're quite right that it will make all
numbers negative just to get them clamped to zero later.
And float range is only from 0 to 2.0f?
Honestly I don't quite understand what the code is trying to do.
CC Jose as he wrote it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180426/8b2f87a6/attachment.html>


More information about the mesa-dev mailing list