dope-sys 0.78.0

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
use std::arch::x86_64;

pub(super) fn crc32() -> Option<bool> {
    let features = x86_64::__cpuid(1);
    Some(features.edx & (1 << 26) != 0 && features.ecx & (1 << 1) != 0)
}