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-mv/blob/main/bridge/omega-bridge/tests/native/freestanding/f64.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / bridge / omega-bridge / tests / native / freestanding / f64.om` 20 lines ยท 401 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 om2 3 fn average a f64 b f64 to f64 4 two = f64 2.0e+0 5 ret div add a b two 6 end 7 export fn fbits mode ulong abits ulong bbits ulong to ulong 8 a = bitcast f64 abits 9 b = bitcast f64 bbits 10 if eq mode 0 11 ret bitcast ulong add a b 12 end 13 if eq mode 1 14 ret bitcast ulong div a b 15 end 16 if eq mode 2 17 ret bitcast ulong neg a 18 end 19 ret bitcast ulong average a b 20 end