<commit_before>//
// Created by MForever78 on 16/4/19.
//

#include "Coprocessor.hpp"

bool Coprocessor::interruptable() const {
    return (regs[12] & 1) == 1;
}

bool Coprocessor::excepting() const {
    return (regs[12] & 2) == 1;
}

bool Coprocessor::userMode() const {
    return (regs[12] & 16) == 1;
}

bool Coprocessor::deviceInterruptable(const uint32_t busCode) const {
    return ((1 << busCode) & (regs[12] >> 8)) == 1;
}

bool Coprocessor::branched() const {<commit_msg>fix: compare to zero to avoid always false<commit_after>//
// Created by MForever78 on 16/4/19.
//

#include "Coprocessor.hpp"

bool Coprocessor::interruptable() const {
    return (regs[12] & 1) != 0;
}

bool Coprocessor::excepting() const {
    return (regs[12] & 2) != 0;
}

bool Coprocessor::userMode() const {
    return (regs[12] & 16) != 0;
}

bool Coprocessor::deviceInterruptable(const uint32_t busCode) const {
    return ((1 << busCode) & (regs[12] >> 8)) == 1;
}

bool Coprocessor::branched() const {
{'fraction_non_alphanumeric': 0.17185929648241205, 'fraction_numerical': 0.054271356783919596, 'mean_word_length': 4.03030303030303, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5481829', 'n_tokens_mistral': 415, 'n_tokens_neox': 378, 'n_words': 93}