Annotation of OpenXM/src/ox_toolkit/gmp_fake.h, Revision 1.2
1.1 ohara 1: /* -*- mode: C; coding: euc-japan -*- */
1.2 ! ohara 2: /* $OpenXM: OpenXM/src/ox_toolkit/gmp_fake.h,v 1.1 2003/03/30 08:10:57 ohara Exp $ */
1.1 ohara 3:
4: #ifndef __GMP_FAKE_H__
5: #define __GMP_FAKE_H__
6:
1.2 ! ohara 7: #include <stddef.h>
! 8:
1.1 ohara 9: typedef unsigned mp_limb_t;
10: typedef int mp_size_t;
11:
12: typedef struct {
1.2 ! ohara 13: int _mp_alloc;
1.1 ohara 14: int _mp_size;
15: mp_limb_t *_mp_d;
16: } __mpz_struct;
17:
18: typedef __mpz_struct mpz_t[1];
19: typedef __mpz_struct *mpz_ptr;
20: typedef mpz_ptr mpz_srcptr;
21:
22: void *_mpz_realloc(mpz_ptr, size_t);
23: void mpz_init(mpz_ptr);
24: int mpz_init_set_str(mpz_ptr, char *, int);
25: void mpz_set(mpz_ptr, mpz_ptr);
26: void mpz_set_si(mpz_ptr, int);
27: int mpz_set_str(mpz_ptr, char *, int);
28: char *mpz_get_str(char *, int, mpz_ptr);
29: int mpz_get_si(mpz_ptr z);
30: void mpz_neg(mpz_ptr, mpz_ptr);
31:
32: #endif /* __GMP_FAKE_H__ */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>