omega-mcp
aien-dev/omega-mcp
Brought by drakestapleton
omega-mcp / data / examples / floats.om
| 1 | note f64 and f32 values, fsqrt, fabs, fmin, fmax, conversions and bitcast |
| 2 | fn main to int |
| 3 | if ne bitcast ulong 1.0f64 4607182418800017408 |
| 4 | ret 1 |
| 5 | end |
| 6 | r = fsqrt 16.0f64 |
| 7 | b = fabs neg 1.5f64 |
| 8 | c = fmax b fmin 0.25f64 3.0f64 |
| 9 | d = f32 1.5f64 |
| 10 | v = add mul r 2.0f64 add c f64 d |
| 11 | ret int v |
| 12 | end |