Bit32

constructor(lo: Int, hi: Int, incrementBy: Int)

Creates a new Bit32 counter initialized to lo and hi

Throws

when:

  • incrementBy is less than or equal to 0

  • incrementBy is greater than MAX_INCREMENT

  • incrementBy is not a factor of 8

  • incrementBy does not go into Int.MIN_VALUE (i.e. when Int.MIN_VALUE % incrementBy != 0)

  • lo is not a factor of incrementBy


constructor(incrementBy: Int)

Creates a new Bit32 counter initialized to 0:0

Throws

when incrementBy is:

  • Less than or equal to 0

  • Greater than MAX_INCREMENT

  • Not a factor of 8

  • Does not go into Int.MIN_VALUE (i.e. when Int.MIN_VALUE % incrementBy != 0)