File: evaluate.c

package info (click to toggle)
e-antic 0.1.8%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,336 kB
  • sloc: ansic: 12,244; cpp: 2,084; makefile: 260; sh: 3
file content (28 lines) | stat: -rw-r--r-- 861 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
    Copyright (C) 2016 Vincent Delecroix

    This file is part of e-antic

    e-antic is free software: you can redistribute it and/or modify it under
    the terms of the GNU Lesser General Public License (LGPL) as published
    by the Free Software Foundation; either version 2.1 of the License, or
    (at your option) any later version.  See <http://www.gnu.org/licenses/>.
*/

#include <e-antic/poly_extra.h>

#define NUMBER arb
#include "poly_evaluate_template.h"
#undef NUMBER

#define NUMBER arf
#define ADD(z,x,y,prec) arf_mul(z,x,y,prec,ARF_RND_NEAR)
#define MUL(z,x,y,prec) arf_mul(z,x,y,prec,ARF_RND_NEAR)
#define ADD_FMPZ(z,x,y,prec) arf_add_fmpz(z,x,y,prec,ARF_RND_NEAR)
#define DIV_FMPZ(z,x,y,prec) arf_div_fmpz(z,x,y,prec,ARF_RND_NEAR)
#include "poly_evaluate_template.h"
#undef ADD
#undef MUL
#undef ADD_FMPZ
#undef DIV_FMPZ
#undef NUMBER