version 1.38, 2015/08/18 02:24:04 |
version 1.41, 2016/04/01 18:12:39 |
|
|
/* -*- mode: C -*- */ |
/* -*- mode: C -*- */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.37 2015/08/17 05:18:35 noro Exp $ */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.40 2015/08/27 03:03:33 ohara Exp $ */ |
|
|
#ifndef _OX_TOOLKIT_H_ |
#ifndef _OX_TOOLKIT_H_ |
#define _OX_TOOLKIT_H_ |
#define _OX_TOOLKIT_H_ |
|
|
#include <ox/smCommand.h> |
#include <ox/smCommand.h> |
#include <gc/gc.h> |
#include <gc/gc.h> |
|
|
|
#if defined(_MSC_VER) |
|
#include <malloc.h> |
|
#endif |
|
|
#define MALLOC(x) GC_MALLOC((x)) |
#define MALLOC(x) GC_MALLOC((x)) |
#define MALLOC_ATOMIC(x) GC_MALLOC_ATOMIC((x)) |
#define MALLOC_ATOMIC(x) GC_MALLOC_ATOMIC((x)) |
#define ALLOCA(x) alloca((x)) |
#define ALLOCA(x) alloca((x)) |
Line 206 cmo_qq* new_cmo_qq_set_mpz(mpz_ptr num, mpz |
|
Line 210 cmo_qq* new_cmo_qq_set_mpz(mpz_ptr num, mpz |
|
cmo_bf* new_cmo_bf(); |
cmo_bf* new_cmo_bf(); |
cmo_bf* new_cmo_bf_set_mpfr(mpfr_ptr q); |
cmo_bf* new_cmo_bf_set_mpfr(mpfr_ptr q); |
cmo_complex* new_cmo_complex(); |
cmo_complex* new_cmo_complex(); |
cmo_complex* new_cmo_bf_set_re_im(cmo *re,cmo *im); |
cmo_complex* new_cmo_complex_set_re_im(cmo *re,cmo *im); |
cmo_zero* new_cmo_zero(); |
cmo_zero* new_cmo_zero(); |
cmo_double* new_cmo_double(double d); |
cmo_double* new_cmo_double(double d); |
cmo_distributed_polynomial* new_cmo_distributed_polynomial(); |
cmo_distributed_polynomial* new_cmo_distributed_polynomial(); |
Line 267 cmo_list* list_append_monomial(cmo_list* , cm |
|
Line 271 cmo_list* list_append_monomial(cmo_list* , cm |
|
cmo_list* list_appendl(cmo_list*, ...); |
cmo_list* list_appendl(cmo_list*, ...); |
int list_length(cmo_list* ); |
int list_length(cmo_list* ); |
cmo* list_nth(cmo_list* , int n); |
cmo* list_nth(cmo_list* , int n); |
|
cmo* list_first_cmo(cmo_list *); |
|
|
int cmolen_cmo(cmo* m); |
int cmolen_cmo(cmo* m); |
void dump_buffer_init(char *s); |
void dump_buffer_init(char *s); |