@@ -12288,6 +12288,9 @@ if (!target) {
1228812288
1228912289 if (xym) {
1229012290 xym.push(scroll < 0 ? -1 : 1)
12291+
12292+ System.out.println("j2sApplet " + xym);
12293+
1229112294 who.applet._processEvent(507, xym, ev, who._frameViewer);
1229212295 }
1229312296 return !!(ui || target);
@@ -16871,26 +16874,118 @@ Math.signum||(Math.signum=function(d){return(d==0.0||isNaN(d))?d:d < 0 ? -1 : 1}
1687116874
1687216875Math.scalb||(Math.scalb=function(d,scaleFactor){return d*Math.pow(2,scaleFactor)});
1687316876
16874- //the following Math functions rely on datatypes nonexistant in javascript
16875- Math.nextAfter||(Math.nextAfter=function(start,direction){return 0});
16876- Math.nextUp||(Math.nextUp=function(d){return 0});
16877- Math.ulp||(Math.ulp=function(d){return 0});
16878- Math.getExponent||(Math.getExponent=function(d){return 0});
16879- Math.IEEEremainder||(Math.IEEEremainder=function (x, y) {
16880- if (Double.isNaN$D(x) || Double.isNaN$D(y) || Double.isInfinite$D(x) || y == 0)
16881- return NaN;
16882- if (!Double.isInfinite$D(x) && Double.isInfinite$D(y))
16883- return x;
16884- var modxy = x % y;
16885- if (modxy == 0) return modxy;
16886- var rem = modxy - Math.abs(y) * Math.signum(x);
16887- if (Math.abs(rem) == Math.abs(modxy)) {
16888- var div = x / y;
16889- return (Math.abs(Math.round(div)) > Math.abs(div) ? rem : modxy);
16890- }
16891- return (Math.abs(rem) < Math.abs(modxy) ? rem : modxy);
16877+ //var
16878+ a64 = null, a32 = null, i32 = null, i64 = null;
16879+
16880+ Math.nextAfter||
16881+ (Math.nextAfter=function(start,direction){
16882+ if (isNaN(start) || isNaN(direction))
16883+ return NaN;
16884+ if (direction == start)
16885+ return start;
16886+ if (start == Double.MAX_VALUE && direction == Double.POSITIVE_INFINITY)
16887+ return Double.POSITIVE_INFINITY;
16888+ if (start == -Double.MAX_VALUE && direction == Double.NEGATIVE_INFINITY)
16889+ return Double.NEGATIVE_INFINITY;
16890+ if (start == Double.POSITIVE_INFINITY && direction == Double.NEGATIVE_INFINITY)
16891+ return Double.MAX_VALUE;
16892+ if (start == Double.NEGATIVE_INFINITY && direction == Double.POSITIVE_INFINITY)
16893+ return -Double.MAX_VALUE;
16894+ if (start == 0)
16895+ return (direction > 0 ? Double.MIN_VALUE : -Double.MIN_VALUE);
16896+
16897+ if (!a64) {
16898+ a64 = new Float64Array(1);
16899+ i64 = new Uint32Array(a64.buffer);
16900+ }
16901+ a64[0] = start;
16902+ var i0 = i64[0];
16903+ var i1 = i64[1];
16904+ var carry;
16905+ if ((direction > start) == (start >= 0)) {
16906+ i64[0]++;
16907+ carry = (i64[0] == 0 ? 1 : 0);
16908+ } else {
16909+ i64[0]--;
16910+ carry = (i64[0] == 4294967295 ? -1 : 0);
16911+ }
16912+ if (carry)
16913+ i64[1]+=carry;
16914+ return a64[0];
1689216915});
1689316916
16917+ Math.nextAfter$D$D = Math.nextAfter;
16918+
16919+ Math.nextAfter$F$D =function(start,direction){
16920+ if (isNaN(start) || isNaN(direction))
16921+ return NaN;
16922+ if (direction == start)
16923+ return start;
16924+ if (start == Float.MAX_VALUE && direction == Float.POSITIVE_INFINITY)
16925+ return Float.POSITIVE_INFINITY;
16926+ if (start == -Float.MAX_VALUE && direction == Float.NEGATIVE_INFINITY)
16927+ return Float.NEGATIVE_INFINITY;
16928+ if (start == Float.POSITIVE_INFINITY && direction == Float.NEGATIVE_INFINITY)
16929+ return Float.MAX_VALUE;
16930+ if (start == Float.NEGATIVE_INFINITY && direction == Float.POSITIVE_INFINITY)
16931+ return -Float.MAX_VALUE;
16932+ if (start == 0 && direction < 0)
16933+ return -Float.MIN_VALUE;
16934+ if (start == 0)
16935+ return (direction > 0 ? Float.MIN_VALUE : -Float.MIN_VALUE);
16936+
16937+ if (!i32) {
16938+ a32 = new Float32Array(1);
16939+ i32 = new Int32Array(a32.buffer);
16940+ }
16941+ a32[0] = start;
16942+ i32[0] += ((direction > start) == (start >= 0) ? 1 : -1);
16943+ return a32[0];
16944+ };
16945+
16946+
16947+ Math.nextUp||(Math.nextUp=function(d){ return Math.nextAfter(d, Double.POSITIVE_INFINITY); });
16948+
16949+ Math.nextUP$D=Math.nextUp;
16950+
16951+ Math.nextUp$F = function(f){ return Math.nextAfter$F$D(f, Double.NEGATIVE_INFINITY); };
16952+
16953+
16954+ Math.nextDown||(Math.nextDown=function(d){ return Math.nextAfter(d, Double.NEGATIVE_INFINITY); });
16955+
16956+ Math.nextDown$D=Math.nextDown;
16957+
16958+ Math.nextDown$F = function(f){ return Math.nextAfter$F$D(f, Double.NEGATIVE_INFINITY); };
16959+
16960+
16961+ Math.ulp||(Math.ulp=function(d){
16962+ if (isNaN(d)) {
16963+ return Double.NaN;
16964+ }
16965+ if (isInfinite(d)) {
16966+ return Double.POSITIVE_INFINITY;
16967+ }
16968+ if (d == Double.MAX_VALUE || d == -Double.MAX_VALUE) {
16969+ return Math.pow(2, 971);
16970+ }
16971+ return Math.nextUp(Math.abs(d));
16972+ });
16973+
16974+ Math.ulp$D = Math.ulp;
16975+
16976+ Math.ulp$F = function(f){
16977+ if (isNaN(f)) {
16978+ return Float.NaN;
16979+ }
16980+ if (isInfinite(f)) {
16981+ return Float.POSITIVE_INFINITY;
16982+ }
16983+ if (f == Float.MAX_VALUE || f == -Float.MAX_VALUE) {
16984+ return Math.pow(2, 104);
16985+ }
16986+ return Math.nextUp$F(Math.abs(f));
16987+ };
16988+
1689416989
1689516990Clazz._setDeclared("java.lang.Number", java.lang.Number=Number);
1689616991Number.prototype._numberToString=Number.prototype.toString;
@@ -17344,18 +17439,18 @@ return"class java.lang.Float";
1734417439return Clazz._floatToString(this.valueOf());
1734517440};
1734617441
17347- Clazz._a32 = null ;
17442+ var a32, i32 ;
1734817443
1734917444Float.floatToIntBits$F = function(f) {
17350- var a = Clazz._a32 || (Clazz._a32 = new Float32Array(1));
17351- a [0] = f;
17352- return new Int32Array(a.buffer) [0];
17445+ i32 || (a32 = new Float32Array(1), i32 = new Int32Array(a32.buffer ));
17446+ a32 [0] = f;
17447+ return i32 [0];
1735317448}
1735417449
1735517450Float.intBitsToFloat$I = function(i) {
17356- var a = Clazz._i32 || (Clazz._i32 = new Int32Array(1 ));
17357- a [0] = i;
17358- return new Float32Array(a.buffer) [0];
17451+ i32 || (a32 = new Float32Array(1), i32 = new Int32Array(a32.buffer ));
17452+ i32 [0] = i;
17453+ return a32 [0];
1735917454}
1736017455
1736117456Float.serialVersionUID=Float.prototype.serialVersionUID=-2671257302660747028;
0 commit comments