omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / evidence / native-bindings / omega_native.h
| 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 <stdint.h> |
| 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 |