// jacobi().
// General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
// Specification.
#include "cln/numtheory.h"
// Implementation.
#include "cln/integer.h"
-#include "cl_I.h"
-#include "cln/abort.h"
-#include "cl_xmacros.h"
+#include "integer/cl_I.h"
+#include "cln/exception.h"
+#include "base/cl_xmacros.h"
namespace cln {
{
// Check b > 0, b odd.
if (!(b > 0))
- cl_abort();
+ throw runtime_exception();
if (!oddp(b))
- cl_abort();
+ throw runtime_exception();
{ Mutable(cl_I,a);
Mutable(cl_I,b);
// Ensure 0 <= a < b.