def unary_math_intr(fn, intrcode):
 @lower(fn, types.Float)
 def float_impl(context, builder, sig, args):
  res = call_fp_intrinsic(builder, intrcode, args)
  return impl_ret_untracked(context, builder, sig.return_type, res)
 unary_math_int_impl(fn, float_impl)
 return float_impl

def unary_math_intr ( fn , intrcode ) : @ lower ( fn , types . Float ) def float_impl ( context , builder , sig , args ) : res = call_fp_intrinsic ( builder , intrcode , args ) return impl_ret_untracked ( context , builder , sig . return_type , res ) unary_math_int_impl ( fn , float_impl ) return float_impl
implement the math function *fn* using the llvm intrinsic *intrcode* .