version 1.1, 2003/03/30 08:10:57 |
version 1.3, 2003/11/12 15:20:18 |
|
|
/* -*- mode: C; coding: euc-japan -*- */ |
/* -*- mode: C; coding: euc-japan -*- */ |
/* $OpenXM$ */ |
/* $OpenXM: OpenXM/src/ox_toolkit/gmp_fake.h,v 1.2 2003/04/09 09:33:07 ohara Exp $ */ |
|
|
#ifndef __GMP_FAKE_H__ |
#ifndef __GMP_FAKE_H__ |
#define __GMP_FAKE_H__ |
#define __GMP_FAKE_H__ |
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
|
#include <stddef.h> |
|
|
typedef unsigned mp_limb_t; |
typedef unsigned mp_limb_t; |
typedef int mp_size_t; |
typedef int mp_size_t; |
|
|
typedef struct { |
typedef struct { |
/* int _mp_alloc; */ |
int _mp_alloc; |
int _mp_size; |
int _mp_size; |
mp_limb_t *_mp_d; |
mp_limb_t *_mp_d; |
} __mpz_struct; |
} __mpz_struct; |
Line 26 int mpz_set_str(mpz_ptr, char *, int); |
|
Line 32 int mpz_set_str(mpz_ptr, char *, int); |
|
char *mpz_get_str(char *, int, mpz_ptr); |
char *mpz_get_str(char *, int, mpz_ptr); |
int mpz_get_si(mpz_ptr z); |
int mpz_get_si(mpz_ptr z); |
void mpz_neg(mpz_ptr, mpz_ptr); |
void mpz_neg(mpz_ptr, mpz_ptr); |
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
|
#endif /* __GMP_FAKE_H__ */ |
#endif /* __GMP_FAKE_H__ */ |