pike.git / lib / modules / Int.pmod

version» Context lines:

pike.git/lib/modules/Int.pmod:87:    filter ^= filter>>aligned_bits;    value = (value & filter)>>aligned_bits |    (value & (filter^mask))<<aligned_bits;    }       // Adjust the returned value in case we've swapped more bits    // than needed. We then have junk in the lowest order bits.    return value>>bits;   }    - protected class Inf { + //! The type of @[Int.inf]. Do not create more instances of this. + class Inf {       protected constant neg = 0;    protected int __hash() { return 17; }    protected int(0..1) _equal(mixed arg) {    if(neg && arg==-Math.inf) return 1;    if(!neg && arg==Math.inf) return 1;    return arg==this;    }    protected int(0..1) _is_type(mixed type) { return (< "int", "object" >)[type]; }    protected mixed _random() { return this; }
pike.git/lib/modules/Int.pmod:174:    }   }      class NInf {    inherit Inf;    constant neg = 1;   }      protected Inf ninf = NInf();    - //! An infinite number. + //! An object that behaves like positive infinity.   Inf inf = Inf();