src/intobject/ops_misc

Search:
Group by:
Source   Edit  

Procs

func fastLog2(a: IntObject): int {....raises: [], tags: [], forbids: [].}
Computes the logarithm in base 2 of a. If a is negative, returns the logarithm of abs(a). If a is zero, returns -1. Source   Edit  
proc pred(self: IntObject; i: int = 1): IntObject {.inline, ...raises: [],
    tags: [], forbids: [].}
Source   Edit  
proc succ(self: IntObject; i: int = 1): IntObject {.inline, ...raises: [],
    tags: [], forbids: [].}
Source   Edit  

Iterators

iterator `..`(a, b: IntObject): IntObject {....raises: [], tags: [], forbids: [].}
Source   Edit