tor_v3_vanity_core/
lib.rs

1#![no_std]
2#![cfg_attr(
3    any(target_arch = "nvptx", target_arch = "nvptx64"),
4    feature(abi_ptx, stdsimd)
5)]
6
7use rustacuda_derive::DeviceCopy;
8use rustacuda_core::DevicePointer;
9
10#[cfg(any(target_arch = "nvptx", target_arch = "nvptx64"))]
11mod kernel;
12
13#[derive(DeviceCopy, Clone)]
14#[repr(C)]
15pub struct KernelParams {
16    pub seed: DevicePointer<u8>,
17    pub byte_prefix: DevicePointer<u8>,
18    pub byte_prefix_len: usize,
19    pub last_byte_idx: usize,
20    pub last_byte_mask: u8,
21    pub out: DevicePointer<u8>,
22    pub success: DevicePointer<bool>,
23}