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/gpu/nvidia/om/apiviews/gdnsc.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 / gpu / nvidia / om / apiviews / gdnsc.om` 18 lines ยท 429 bytes Raw Blame History 1 om2 2 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 3 note Interleave already-computed neg-exp scales with dt bias. 4 note len sc is twice len ng, and len dt equals len ng. The exp stays in C. 5 fn av_gdnsc ng view f32 * dt view f32 * sc edit f32 * to ulong 6 if ne len ng len dt 7 ret 1 8 end 9 if ne len sc add len ng len ng 10 ret 1 11 end 12 n = len ng 13 for i ulong n 14 put sc mul i 2 get ng i 15 put sc add mul i 2 1 get dt i 16 end 17 ret 0 18 end