freeswitch/libs/libzrtp/third_party/bnlib/jacobi.h

11 lines
325 B
C

/*
* Copyright (c) 1995 Colin Plumb. All rights reserved.
* For licensing and other legal details, see the file legal.c.
*
* For a small (usually prime, but not necessarily) prime p,
* Return Jacobi(p,bn), which is -1, 0 or +1.
* bn must be odd.
*/
struct BigNum;
int bnJacobiQ(unsigned p, struct BigNum const *bn);