Changes between Version 130 and Version 131 of IR2


Ignore:
Timestamp:
06/16/21 10:29:40 (5 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IR2

    v130 v131  
    392392
    393393{{{
    394 $template <$int s> $int<s> $round($real x); // round to nearest integer
    395 $template <$int s> $int<s> $floor($real x); // greatest integer less than or equal to
    396 $template <$int s> $int<s> $ceil($real x); // least integer greater than or equal to
    397 $template <$int s> $float<s> $roundf($real x, $int mode);  // round to float (see modes above)
     394$int $round($real x); // round to nearest integer
     395$int $floor($real x); // greatest integer less than or equal to
     396$int $ceil($real x); // least integer greater than or equal to
     397<$int s> $float<s> $roundf($real x, $int mode);  // round to float (see modes above)
    398398$real $abs($real x); // absolute value on reals
    399 $template <$int s> $int<s> $absi($int<s> x); // absolute value on integers
    400 $template <$int s> $float<s> $absf($float<s> x); // absolute value on $float
    401 ...left off here...
    402 $float64 $abs64($float64 x); // absolute value on $float64
     399$int $absi($int x); // absolute value on integers
     400<$int s> $float<s> $absf($float<s> x); // absolute value on $float
    403401$real $pow($real x, $int n);  // x to the n-th power.  n>=0
    404402$int $powi($int x, $int n);
    405 $float32 $pow32($float32 x, $int n);
    406 $float64 $pow64($float64 x, $int n);
    407 // do we need herbrand versions of above?  make these expressions?
     403<$int s> $float<s> $pow($float<s> x, $int n);
    408404// trig functions? pi?
    409405<T> T $eval($herbrand<T> x);  // returns value of type T obtained by evaluating all the delayed operations