vyre 0.4.0

GPU compute intermediate representation with a standard operation library
Documentation
use vyre::ops::buffer::*;

#[test]
fn memcmp_equal() {
    assert!(memcmp::memcmp(b"hello", b"hello"));
}

#[test]
fn memcmp_different() {
    assert!(!memcmp::memcmp(b"hello", b"world"));
}

#[test]
fn memcmp_different_length() {
    assert!(!memcmp::memcmp(b"hi", b"hello"));
}

#[test]
fn memset_basic() {
    assert_eq!(memset::memset(3, 0xAB), vec![0xAB, 0xAB, 0xAB]);
}

#[test]
fn memchr_basic() {
    assert_eq!(memchr::memchr(b"hello", b'l' as u32), 2);
    assert_eq!(memchr::memchr(b"hello", b'z' as u32), u32::MAX);
}

#[test]
fn byte_count_basic() {
    assert_eq!(byte_count::byte_count(b"hello world", b'l' as u32), 3);
}

#[test]
fn byte_swap_u32_basic() {
    assert_eq!(byte_swap_u32::byte_swap_u32(0x12345678), 0x78563412);
}

#[test]
fn byte_swap_u64_basic() {
    assert_eq!(
        byte_swap_u64::byte_swap_u64(0x123456789ABCDEF0),
        0xF0DEBC9A78563412
    );
}