Base version with linear combinated classes

This commit is contained in:
2019-12-13 18:17:29 +03:00
parent d3b1fc754a
commit 30ddecfa3c
3 changed files with 191 additions and 8 deletions

View File

@@ -76,6 +76,10 @@ class Function {
return _function_values == other._function_values;
}
STORAGE at(STORAGE index) const {
return (_function_values >> index) % 2;
}
Function var_negation(STORAGE var_index) {
// var_index should be in 1..VARS_COUNT
STORAGE mask, remains, shift;