Files
gem5/src/base
Dam Sunwoo 3f9e352de4 Base: Fixed shift amount in genrand() to work with large numbers
The previous version didn't work correctly with max integer values (2^31-1 for
32-bit, 2^63-1 for 64bit version), causing "shift" to become -1.  For smaller
numbers, it wouldn't have caused functional errors, but would have resulted in
more than necessary loops in the while loop.  Special-cased cases when (max + 1
== 0) to prevent the ceilLog2 functions from failing.
2012-01-09 18:08:20 -06:00
..
2009-06-21 16:40:33 -07:00
2006-05-31 19:26:56 -04:00
2011-04-15 10:44:06 -07:00
2011-04-15 10:44:06 -07:00
2011-04-15 10:44:06 -07:00
2006-05-31 19:26:56 -04:00
2011-05-04 10:08:08 -04:00
2011-05-04 10:08:08 -04:00
2011-04-15 10:44:06 -07:00
2011-04-15 10:44:06 -07:00
2011-04-15 10:44:06 -07:00
2011-04-15 10:44:06 -07:00
2008-09-19 09:11:40 -07:00
2006-05-31 19:26:56 -04:00
2006-05-31 19:26:56 -04:00
2006-05-31 19:26:56 -04:00
2011-04-15 10:44:06 -07:00
2011-04-15 10:44:06 -07:00
2011-04-15 10:44:06 -07:00
2006-05-31 19:26:56 -04:00
2006-05-31 19:26:56 -04:00
2011-04-13 09:32:19 -07:00
2011-04-15 10:44:06 -07:00
2011-04-15 10:44:06 -07:00
2011-04-15 10:44:06 -07:00
2011-04-15 10:44:06 -07:00
2006-05-31 19:26:56 -04:00
2006-05-31 19:26:56 -04:00