Skip to content

Commit

Permalink
rust/src/lib.rs: add NTT enums declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Jan 7, 2024
1 parent 65739f4 commit a24b42b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,23 @@ impl<T> Clone for Gpu_Ptr<T> {
unsafe { transmute::<_, _>(clone_gpu_ptr_t(transmute::<&_, &_>(self))) }
}
}

#[repr(C)]
pub enum NTTInputOutputOrder {
NN = 0,
NR = 1,
RN = 2,
RR = 3,
}

#[repr(C)]
pub enum NTTDirection {
Forward = 0,
Inverse = 1,
}

#[repr(C)]
pub enum NTTType {
Standard = 0,
Coset = 1,
}

0 comments on commit a24b42b

Please sign in to comment.