bit-min-max 1.0.0
Find min and max of bitwise AND, OR, and XOR
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
This project contains algorithms to find the min or max of bitwise AND, OR, and XOR given two ranges of possible values.
There's also a paper I never finished (or made readable) that explains the derivation of these algorithms.
Usage is pretty simple:
import bitall;
void main() {
byte min = minOr!byte(1, 2, 1, 2);
byte max = maxOr!byte(1, 2, 1, 2);
assert(min == 1);
assert(max == 3);
}
- 1.0.0 released 10 years ago
- ariovistus/bit-min-max
- BSL-1.0
- Copyright © 2014, Ellery Newcomer
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.0 2014-Dec-14 ~master 2014-Dec-14 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
202 downloads total
-
- Score:
- 0.5
- Short URL:
- bit-min-max.dub.pm