Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/blob/main/evidence/native-bindings/omega_native.rs # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-bridge / evidence / native-bindings / omega_native.rs` 31 lines ยท 1674 bytes Raw Blame History 1 // Generated by omega-bridge src/native.om: native call ABI v1 (docs/NATIVE-ABI.md). 2 // Declarations for libomega_native (build with -L ; Rust 1.82 or later). Regenerate it; do not edit it. 3 // Status: 0 done; 1..14 the Omega trap code; 32 argument refused (null, wrong length, misaligned, 4 // overlap); 33 reentry; 34 bad runtime entry; 35 no stack. The result is written only on status 0. 5 // A long is its two's-complement bits (an i64 as u64); an array is its pointer then its element count. 6 #[allow(dead_code)] 7 pub const OMEGA_OK: u32 = 0; 8 #[allow(dead_code)] 9 pub const OMEGA_BAD_ARG: u32 = 32; 10 #[allow(dead_code)] 11 pub const OMEGA_REENTRY: u32 = 33; 12 #[allow(dead_code)] 13 pub const OMEGA_BAD_RT: u32 = 34; 14 #[allow(dead_code)] 15 pub const OMEGA_NO_STACK: u32 = 35; 16 #[allow(dead_code)] 17 #[link(name = "omega_native")] 18 unsafe extern "C" { 19 // fn madd a ulong b ulong c ulong to ulong 20 pub fn omega_madd(result: *mut u64, o_a: u64, o_b: u64, o_c: u64) -> u32; 21 // fn smadd a long b long c long to long 22 pub fn omega_smadd(result: *mut u64, o_a: u64, o_b: u64, o_c: u64) -> u32; 23 // fn fill buf edit ulong 4 k ulong to ulong 24 pub fn omega_fill(result: *mut u64, o_buf: *mut u64, o_buf_len: u64, o_k: u64) -> u32; 25 // fn spin n ulong to ulong 26 pub fn omega_spin(result: *mut u64, o_n: u64) -> u32; 27 // fn mix a ulong b long c view uchar 3 d edit uchar 2 e view ulong 2 f ulong to void 28 pub fn omega_mix(result: *mut u64, o_a: u64, o_b: u64, o_c: *const u8, o_c_len: u64, o_d: *mut u8, o_d_len: u64, o_e: *const u64, o_e_len: u64, o_f: u64) -> u32; 29 // fn big n ulong to ulong 30 pub fn omega_big(result: *mut u64, o_n: u64) -> u32; 31 }