17 Commits

Author SHA1 Message Date
Brian Burkhalter
9e71840a87 8035427: Math.random() JavaDoc: missing maximum returned value
Add some documentation amplifying the description of Math.random().

Reviewed-by: psandoz
2014-04-11 13:12:11 -07:00
Dmitry Nadezhin
28d455529e 8010430: Math.round has surprising behavior for odd values of ulp 1
If the effective floating point exponent is zero return the significand including the implicit 1-bit.

Reviewed-by: bpb, darcy, gls
2013-09-11 17:07:35 -07:00
Brian Burkhalter
ff7c51cd18 6470700: Math.random() / Math.initRNG() uses "double checked locking"
Replace class Random variable with a static final holder class

Reviewed-by: alanb, mduigou, chegar
2013-08-22 13:32:22 -07:00
Brian Burkhalter
10673cfe8c 8022109: Evaluate adding incrementExact, decrementExact, negateExact to java.lang.Math
Add the methods for parameter types int and long.

Reviewed-by: mduigou
2013-08-12 10:35:44 -07:00
Roger Riggs
5d67e2bbb1 6282196: There should be Math.mod(number, modulo) methods
Added the requested methods

Reviewed-by: darcy, emcmanus, alanb
2012-11-07 20:50:09 -08:00
Alan Bateman
430592a30e 7197491: update copyright year to match last edit in jdk8 jdk repository
Reviewed-by: chegar, ksrini
2012-11-02 15:50:11 +00:00
Roger Riggs
ac69a5f84a 6708398: Support integer overflow
Added add/sub/multiply/toIntExact methods to j.l.Math and StrictMath classes

Reviewed-by: emcmanus
2012-02-16 11:43:20 -08:00
Martin Desruisseaux
f8400651e0 7128441: StrictMath performance improvement note shared with Math
Reviewed-by: darcy
2012-01-09 15:54:44 -08:00
Joe Darcy
57096116d9 7123649: Remove public modifier from Math.powerOfTwoF
Reviewed-by: smarks, alanb
2012-01-06 18:47:43 -08:00
Joe Darcy
82e488e3ae 7092404: Add Math.nextDown and Double.isFinite
Reviewed-by: mduigou
2011-09-21 23:22:11 -07:00
Joe Darcy
5b7643e258 7091682: Move sun.misc.FpUtils code into java.lang.Math
Reviewed-by: alanb
2011-09-18 18:14:07 -07:00
Joe Darcy
e2b3aaa728 7062430: Minor inconsistency in ulp descriptions
Reviewed-by: smarks, alanb
2011-07-17 18:53:40 -07:00
Joe Darcy
b4d4e3bed4 6430675: Math.round has surprising behavior for 0x1.fffffffffffffp-2
Reviewed-by: alanb
2011-04-14 21:27:10 -07:00
Kelly O'Hair
6b6a611c8e 6962318: Update copyright year
Reviewed-by: xdono
2010-12-28 15:53:50 -08:00
Martin Buchholz
d6dea71e06 6959259: Minor improvements to static Random field caching
Cache fields in locals; small javadoc clarifications

Reviewed-by: emcmanus, dholmes, forax, dl
2010-06-10 15:55:26 -07:00
Kelly O'Hair
fe008ae27a 6943119: Rebrand source copyright notices
Reviewed-by: darcy, weijun
2010-05-25 15:58:33 -07:00
J. Duke
319a3b9947 Initial load 2007-12-01 00:00:00 +00:00