Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refactoring `bitops.rotateLeftBits()` and `bitops.rotateRightBits()`; adding ↵ | rockcavera | 2021-02-08 | 1 | -65/+223 |
| | | | | | builtins and intrinsics. (#16622) Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> | ||||
* | adding missing commas in std/bitops (#16520) | rockcavera | 2020-12-30 | 1 | -5/+5 |
| | | | adding missing commas between the importc and header pragmas of some procs. | ||||
* | init checks and 'out' parameters (#14521) | Andreas Rumpf | 2020-06-23 | 1 | -0/+2 |
| | | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog | ||||
* | Fix runnable examples for bitops (#14247) | awr1 | 2020-05-06 | 1 | -3/+3 |
| | |||||
* | Added bitslice operations for bitops (#14016) | awr1 | 2020-05-06 | 1 | -21/+206 |
| | | | | | | | | | | | | | | | | | | | | * added bit operations based on bit slices, clarified documentation, made non-mutating versions of mask ops * Added since annotations, some runnable examples * Added mask()/masked() functions, changed internal workings of mask ops to use new bit* funcs * Changelog updated for new bitops improvements * Reorganization, added runnable examples * Documentation adjustments * Add incltrl for since annotation * Fix masked() impl * Fix mask() return type * Don't call toUnsigned on already unsigned types * Remove improper `var T` for flipMasked() * Fix return types for flipMasked() * Slight syntactic cleanup for *masked ops * Added tests for bitslice operations, new mask() operation, non-mutating mask ops * Fix setmasked() var T issue * More comprehensive tests * Fix runnable example for bitsliced() * Fix runnable example for mask() | ||||
* | Make bitand, bitor, bitxor varargs-friendly (#13985) | awr1 | 2020-04-20 | 1 | -9/ |