clear-cache 0.1.3

A native implementation of `__builtin___clear_cache` without dependency of GCC/Clang.
Documentation
1
2
3
4
5
6
7
8
9
10
fn foo(a: usize) -> usize {
    a + 1
}

#[test]
fn basic_test() {
    let is_success =
        unsafe { clear_cache::clear_cache(foo as *const (), (foo as *const ()).add(4)) };
    assert!(is_success)
}