[BACK]Return to gmp_fake.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_toolkit

Annotation of OpenXM/src/ox_toolkit/gmp_fake.h, Revision 1.3

1.1       ohara       1: /* -*- mode: C; coding: euc-japan -*- */
1.3     ! iwane       2: /* $OpenXM: OpenXM/src/ox_toolkit/gmp_fake.h,v 1.2 2003/04/09 09:33:07 ohara Exp $ */
1.1       ohara       3:
                      4: #ifndef __GMP_FAKE_H__
                      5: #define __GMP_FAKE_H__
                      6:
1.3     ! iwane       7: #ifdef __cplusplus
        !             8: extern "C" {
        !             9: #endif
        !            10:
1.2       ohara      11: #include <stddef.h>
                     12:
1.1       ohara      13: typedef unsigned mp_limb_t;
                     14: typedef int mp_size_t;
                     15:
                     16: typedef struct {
1.2       ohara      17:     int _mp_alloc;
1.1       ohara      18:     int _mp_size;
                     19:     mp_limb_t *_mp_d;
                     20: } __mpz_struct;
                     21:
                     22: typedef __mpz_struct mpz_t[1];
                     23: typedef __mpz_struct *mpz_ptr;
                     24: typedef mpz_ptr mpz_srcptr;
                     25:
                     26: void *_mpz_realloc(mpz_ptr, size_t);
                     27: void mpz_init(mpz_ptr);
                     28: int  mpz_init_set_str(mpz_ptr, char *, int);
                     29: void mpz_set(mpz_ptr, mpz_ptr);
                     30: void mpz_set_si(mpz_ptr, int);
                     31: int  mpz_set_str(mpz_ptr, char *, int);
                     32: char *mpz_get_str(char *, int, mpz_ptr);
                     33: int  mpz_get_si(mpz_ptr z);
                     34: void mpz_neg(mpz_ptr, mpz_ptr);
1.3     ! iwane      35:
        !            36: #ifdef __cplusplus
        !            37: }
        !            38: #endif
1.1       ohara      39:
                     40: #endif /* __GMP_FAKE_H__ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>