16 Commits

Author SHA1 Message Date
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
Joe Darcy
e751cc77ad 8017550: Fix doclint issues in java.lang and subpackages
Reviewed-by: alanb, chegar
2013-06-24 23:40:31 -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
Alan Bateman
9b8e06e699 8000269: Cleanup javadoc warnings
Reviewed-by: lancea, darcy, ulfzibis, iris, naoto, dholmes
2012-10-01 15:36:57 +01: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
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
Joe Darcy
c5f85d1c78 7002594: Math.max and Math.min should use floatToRawIntBits() to check for -0.0
Reviewed-by: mduigou, lancea, alanb
2010-12-01 13:01:53 -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
Joe Darcy
37a980650b 6908131: Pure Java implementations of StrictMath.floor(double) & StrictMath.ceil(double)
Reviewed-by: alanb
2009-12-15 13:51:44 -08:00
J. Duke
319a3b9947 Initial load 2007-12-01 00:00:00 +00:00