test/java/lang/Math/Log1pTests.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2003, 2011 Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 133,144 **** for(int i = -36; i <= 36; i++) { double pc = StrictMath.pow(Math.E, i) - 1; pcNeighbors[2] = pc; ! pcNeighbors[1] = FpUtils.nextDown(pc); ! pcNeighbors[0] = FpUtils.nextDown(pcNeighbors[1]); pcNeighbors[3] = Math.nextUp(pc); pcNeighbors[4] = Math.nextUp(pcNeighbors[3]); for(int j = 0; j < pcNeighbors.length; j++) { pcNeighborsLog1p[j] = Math.log1p(pcNeighbors[j]); --- 133,144 ---- for(int i = -36; i <= 36; i++) { double pc = StrictMath.pow(Math.E, i) - 1; pcNeighbors[2] = pc; ! pcNeighbors[1] = Math.nextDown(pc); ! pcNeighbors[0] = Math.nextDown(pcNeighbors[1]); pcNeighbors[3] = Math.nextUp(pc); pcNeighbors[4] = Math.nextUp(pcNeighbors[3]); for(int j = 0; j < pcNeighbors.length; j++) { pcNeighborsLog1p[j] = Math.log1p(pcNeighbors[j]);
*** 200,206 **** System.err.println("Testing log1p incurred " + failures + " failures."); throw new RuntimeException(); } } - } --- 200,205 ----