summaryrefslogtreecommitdiffstats
path: root/pbn.h
diff options
context:
space:
mode:
Diffstat (limited to 'pbn.h')
-rw-r--r--pbn.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pbn.h b/pbn.h
index afc5249..27cf9b4 100644
--- a/pbn.h
+++ b/pbn.h
@@ -67,6 +67,7 @@ int pbn_cmp(const struct pbn *, const struct pbn *);
int pbn_abscmp(const struct pbn *, const struct pbn *);
struct pbn *pbn_mul(struct pbn *, struct pbn *);
struct pbn *pbn_muls(struct pbn *, pbn_slimb_t);
+struct pbn *pbn_mulus_add(struct pbn *, pbn_limb_t, pbn_limb_t);
int pbn_div(struct pbn **, struct pbn **, struct pbn *, struct pbn *);
int pbn_divs(struct pbn **, pbn_slimb_t *, struct pbn *, pbn_slimb_t);
struct pbn *pbn_abs(struct pbn *);
@@ -76,6 +77,8 @@ struct pbn *pbn_shl(struct pbn *, int);
struct pbn *pbn_and(struct pbn *, struct pbn *);
struct pbn *pbn_or(struct pbn *, struct pbn *);
struct pbn *pbn_xor(struct pbn *, struct pbn *);
+/* pbn_ctz() does NOT consume a reference! */
+int pbn_ctz(const struct pbn *);
struct pbn *pbn_set_bit(struct pbn *, int);
struct pbn *pbn_clr_bit(struct pbn *, int);