interplane.Get Omega
Read in your language

omega-mcp

aien-dev/omega-mcp

Brought by drakestapleton

branch main Branches Tags History

omega-mcp / data / examples / fma.om

15 lines · 333 bytes Raw Blame History
1note fma rounds once: (1+2^-52)*(1-2^-52)-1 is -2^-104, while mul then add rounds twice and gives 0
2fn main to int
3a = bitcast f64 ulong 4607182418800017409
4b = bitcast f64 ulong 4607182418800017406
5m = neg 1.0f64
6f = fma a b m
7s = add mul a b m
8if ne s 0.0f64
9ret 1
10end
11if ge f 0.0f64
12ret 2
13end
14ret int fma 2.0f64 3.0f64 1.0f64
15end