/* -*-c-*-
*
- * $Id: mp-jacobi.c,v 1.3 2000/07/20 17:14:34 mdw Exp $
+ * $Id: mp-jacobi.c,v 1.4 2000/12/06 20:31:33 mdw Exp $
*
* Compute Jacobi symbol
*
/*----- Revision history --------------------------------------------------*
*
* $Log: mp-jacobi.c,v $
+ * Revision 1.4 2000/12/06 20:31:33 mdw
+ * Add assertion to prevent crapness.
+ *
* Revision 1.3 2000/07/20 17:14:34 mdw
* Simplify by using @mp_odd@.
*
{
int s = 1;
+ assert(((void)"n must be odd in mp_jacobi", MP_LEN(n) && (n->v[0] & 1)));
+
/* --- Take copies of the arguments --- */
a = MP_COPY(a);