tricu

A lazy functional language based on Tree Calculus
Log | Files | Refs | README | LICENSE

quantize.tri (162B)


      1 -- Pure binary64 implementation; trusted internal helpers.
      2 !import native_math as N
      3 !import binary64_kernels as K
      4 !export max
      5 
      6 max a b = K.choose a b (N.gte a b)