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/ggml-omega/blob/main/kernels/sexp.om # ggml-omega aien-dev/ggml-omega 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 `ggml-omega / kernels / sexp.om` 11 lines ยท 304 bytes Raw Blame History 1 note sexp_@T@: w[i] = f32 exp(w[i] - max) in place; returns acc (f64 bits) + the sum of the new w[i]. 2 fn sexp_@T@ acc ulong w edit f32 @T@ mx ulong to ulong 3 s = bitcast f64 acc 4 mf = bitcast f32 uint mx 5 for i ulong @T@ 6 v = f32 ex64 f64 sub get w i mf 7 put w i v 8 s = add s f64 v 9 end 10 ret bitcast ulong s 11 end