@@ -75320,7 +75320,7 @@ function erfc(a) {
7532075320
7532175321 z = -a * a;
7532275322
75323- if (z < -709.782712893384 )
75323+ if (z < -kMAXLOG )
7532475324 return (a < 0) ? 2.0 : 0.0;
7532575325
7532675326 z = Math.exp(z);
@@ -75632,7 +75632,7 @@ function igamc(a,x) {
7563275632 return (1.0 - igam(a,x));
7563375633
7563475634 let ax = a * Math.log(x) - x - lgam(a);
75635- if ( ax < -709.782712893384 )
75635+ if ( ax < -kMAXLOG )
7563675636 return 0.0;
7563775637
7563875638 ax = Math.exp(ax);
@@ -75693,7 +75693,7 @@ function igam(a, x) {
7569375693
7569475694 /* Compute x**a * exp(-x) / gamma(a) */
7569575695 let ax = a * Math.log(x) - x - lgam(a);
75696- if ( ax < -709.782712893384 )
75696+ if ( ax < -kMAXLOG )
7569775697 return 0.0;
7569875698
7569975699 ax = Math.exp(ax);
@@ -75751,7 +75751,7 @@ function igami(a, y0) {
7575175751 }
7575275752 /* compute the derivative of the function at this point */
7575375753 d = (a - 1.0) * Math.log(x) - x - lgm;
75754- if ( d < -709.782712893384 )
75754+ if ( d < -kMAXLOG )
7575575755 break;
7575675756 d = -Math.exp(d);
7575775757 /* compute the step to the next approximation of x */
@@ -104798,7 +104798,7 @@ let Polygon$1 = class Polygon {
104798104798 classifyVertex(vertex) {
104799104799 const side_value = this.nsign * (this.normal.dot(vertex) - this.w);
104800104800
104801- if (side_value < -1e-5 ) return BACK;
104801+ if (side_value < -EPSILON ) return BACK;
104802104802 if (side_value > EPSILON) return FRONT;
104803104803 return COPLANAR;
104804104804 }
@@ -120525,7 +120525,7 @@ class TBuffer {
120525120525 this.mapClass(this.fTagOffset + startpos + kMapOffset, classInfo.name);
120526120526 } else {
120527120527 // got a tag to an already seen class
120528- const clTag = (tag & 2147483647 ) + this.fDisplacement;
120528+ const clTag = (tag & ~kClassMask ) + this.fDisplacement;
120529120529 classInfo.name = this.getMappedClass(clTag);
120530120530
120531120531 if (classInfo.name === -1)
@@ -120639,7 +120639,7 @@ DirectStreamers[clTBasket] = function(buf, obj) {
120639120639 obj.fEntryOffset = buf.readFastArray(buf.ntoi4(), kInt);
120640120640 if ((flag > 20) && (flag < 40)) {
120641120641 for (let i = 0, kDisplacementMask = 0xFF000000; i < obj.fNevBuf; ++i)
120642- obj.fEntryOffset[i] &= 16777215 ;
120642+ obj.fEntryOffset[i] &= ~kDisplacementMask ;
120643120643 }
120644120644 }
120645120645
0 commit comments