You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
302 B

// abs().
// General includes.
#include "cl_sysdep.h"
// Specification.
#include "cln/integer.h"
// Implementation.
#include "cl_I.h"
namespace cln {
const cl_I abs (const cl_I& x)
{
// Methode:
// Bei x<0: (- x), sonst x.
if (minusp(x))
return -x;
else
return x;
}
} // namespace cln