projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename MP_IS* to MP_*P, for consistency's sake. Use these macros more often.
[u/mdw/catacomb]
/
pgen.c
diff --git
a/pgen.c
b/pgen.c
index
ac8db38
..
439cbde
100644
(file)
--- a/
pgen.c
+++ b/
pgen.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id
: pgen.c,v 1.10 2004/04/08 01:36:15 mdw Exp
$
+ * $Id$
*
* Prime generation glue
*
*
* Prime generation glue
*
@@
-325,7
+325,7
@@
int pgen_primep(mp *p, grand *gr)
rabin r;
mp *x = MP_NEW;
rabin r;
mp *x = MP_NEW;
- if (MP_
ISNEG
(p)) return (0);
+ if (MP_
NEGP
(p)) return (0);
switch (pfilt_smallfactor(p)) {
case PGEN_DONE: return (1);
case PGEN_FAIL: return (0);
switch (pfilt_smallfactor(p)) {
case PGEN_DONE: return (1);
case PGEN_FAIL: return (0);