interplane.Get Omega
Read in your language

aien-train

AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.

Brought by drakestapleton

branch main Branches Tags History

aien-train / native / omegese45 / translate / otfrag.om

23 lines · 525 bytes Raw Blame History
1note SPDX-License-Identifier: AGPL-3.0-only
2note otfrag: fixed-text emitter. Concatenate AFTER the tool file that
3note defines `text otfr` (a text must be declared before it is read).
4note Append fragment number fi of otfr; fragments are separated by byte
5note 124 (|) and fragment 0 starts at offset 0.
6fn otpfr fi ulong to void
7p = ulong 0
8c = ulong 0
9while lt c fi bound 4096
10if eq get otfr p 124
11c = add c 1
12end
13p = add p 1
14end
15while lt p len otfr bound 4096
16b = get otfr p
17if eq b 124
18ret
19end
20otpb b
21p = add p 1
22end
23end