diff options
author | ed <ed@FreeBSD.org> | 2009-02-26 21:43:15 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-02-26 21:43:15 +0000 |
commit | fa4082de198dcb08fb0798fdf991d3c880c765e3 (patch) | |
tree | 5b0afd074d7bb26b1e443eb2abbda20979f70b42 /lib/libmp/mp.h | |
parent | bb22735cfd8d9750d7d63bbe7a69bb5e7f68060c (diff) | |
download | FreeBSD-src-fa4082de198dcb08fb0798fdf991d3c880c765e3.zip FreeBSD-src-fa4082de198dcb08fb0798fdf991d3c880c765e3.tar.gz |
Rename all symbols in libmp(3) to mp_*, just like Solaris.
The function pow() in libmp(3) clashes with pow(3) in libm. We could
rename this single function, but we can just take the same approach as
the Solaris folks did, which is to prefix all function names with mp_.
libmp(3) isn't really popular nowadays. I suspect not a single
application in ports depends on it. There's still a chance, so I've
increased the SHLIB_MAJOR and __FreeBSD_version.
Reviewed by: deischen, rdivacky
Diffstat (limited to 'lib/libmp/mp.h')
-rw-r--r-- | lib/libmp/mp.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/libmp/mp.h b/lib/libmp/mp.h index 4c2c94d..78f09fd 100644 --- a/lib/libmp/mp.h +++ b/lib/libmp/mp.h @@ -11,22 +11,22 @@ typedef struct _mint { BIGNUM *bn; } MINT; -void gcd(const MINT *, const MINT *, MINT *); -MINT *itom(short); -void madd(const MINT *, const MINT *, MINT *); -int mcmp(const MINT *, const MINT *); -void mdiv(const MINT *, const MINT *, MINT *, MINT *); -void mfree(MINT *); -void min(MINT *); -void mout(const MINT *); -void move(const MINT *, MINT *); -void msqrt(const MINT *, MINT *, MINT *); -void msub(const MINT *, const MINT *, MINT *); -char *mtox(const MINT *); -void mult(const MINT *, const MINT *, MINT *); -void pow(const MINT *, const MINT *, const MINT *, MINT *); -void rpow(const MINT *, short, MINT *); -void sdiv(const MINT *, short, MINT *, short *); -MINT *xtom(const char *); +void mp_gcd(const MINT *, const MINT *, MINT *); +MINT *mp_itom(short); +void mp_madd(const MINT *, const MINT *, MINT *); +int mp_mcmp(const MINT *, const MINT *); +void mp_mdiv(const MINT *, const MINT *, MINT *, MINT *); +void mp_mfree(MINT *); +void mp_min(MINT *); +void mp_mout(const MINT *); +void mp_move(const MINT *, MINT *); +void mp_msqrt(const MINT *, MINT *, MINT *); +void mp_msub(const MINT *, const MINT *, MINT *); +char *mp_mtox(const MINT *); +void mp_mult(const MINT *, const MINT *, MINT *); +void mp_pow(const MINT *, const MINT *, const MINT *, MINT *); +void mp_rpow(const MINT *, short, MINT *); +void mp_sdiv(const MINT *, short, MINT *, short *); +MINT *mp_xtom(const char *); #endif /* !_MP_H_ */ |