vmp & svp doc

This commit is contained in:
Jean-Philippe Bossuat
2025-02-04 10:51:11 +01:00
parent 12004c426a
commit e4a976ec9e
11 changed files with 759 additions and 500 deletions

View File

@@ -1,5 +1,5 @@
use crate::ffi::module::{delete_module_info, module_info_t, new_module_info, MODULE};
use crate::GALOISGENERATOR;
use crate::{Free, GALOISGENERATOR};
pub type MODULETYPE = u8;
pub const FFT64: u8 = 0;
@@ -53,8 +53,10 @@ impl Module {
(gal_el as i64) * gen.signum()
}
}
pub fn delete(self) {
impl Free for Module {
fn free(self) {
unsafe { delete_module_info(self.0) }
drop(self);
}