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.h # 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.h` 33 lines ยท 1608 bytes Raw Blame History 1 /* Generated by omega-bridge src/native.om: native call ABI v1 (docs/NATIVE-ABI.md). 2 * C and C++ declarations for libomega_native. 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 array is its address then its element count. 6 * Parameter names carry o_ so no language's reserved words collide. */ 7 #ifndef OMEGA_NATIVE_H 8 #define OMEGA_NATIVE_H 9 #include 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 #define OMEGA_OK 0u 14 #define OMEGA_BAD_ARG 32u 15 #define OMEGA_REENTRY 33u 16 #define OMEGA_BAD_RT 34u 17 #define OMEGA_NO_STACK 35u 18 /* fn madd a ulong b ulong c ulong to ulong */ 19 uint32_t omega_madd(uint64_t *result, uint64_t o_a, uint64_t o_b, uint64_t o_c); 20 /* fn smadd a long b long c long to long */ 21 uint32_t omega_smadd(uint64_t *result, uint64_t o_a, uint64_t o_b, uint64_t o_c); 22 /* fn fill buf edit ulong 4 k ulong to ulong */ 23 uint32_t omega_fill(uint64_t *result, void *o_buf, uint64_t o_buf_len, uint64_t o_k); 24 /* fn spin n ulong to ulong */ 25 uint32_t omega_spin(uint64_t *result, uint64_t o_n); 26 /* fn mix a ulong b long c view uchar 3 d edit uchar 2 e view ulong 2 f ulong to void */ 27 uint32_t omega_mix(uint64_t *result, uint64_t o_a, uint64_t o_b, const void *o_c, uint64_t o_c_len, void *o_d, uint64_t o_d_len, const void *o_e, uint64_t o_e_len, uint64_t o_f); 28 /* fn big n ulong to ulong */ 29 uint32_t omega_big(uint64_t *result, uint64_t o_n); 30 #ifdef __cplusplus 31 } 32 #endif 33 #endif