CXXR (C++ R)
arithmetic.h
1 /*CXXR $Id: arithmetic.h 1348 2013-02-25 17:49:03Z arr $
2  *CXXR
3  *CXXR This file is part of CXXR, a project to refactor the R interpreter
4  *CXXR into C++. It may consist in whole or in part of program code and
5  *CXXR documentation taken from the R project itself, incorporated into
6  *CXXR CXXR (and possibly MODIFIED) under the terms of the GNU General Public
7  *CXXR Licence.
8  *CXXR
9  *CXXR CXXR is Copyright (C) 2008-13 Andrew R. Runnalls, subject to such other
10  *CXXR copyrights and copyright restrictions as may be stated below.
11  *CXXR
12  *CXXR CXXR is not part of the R project, and bugs and other issues should
13  *CXXR not be reported via r-bugs or other R project channels; instead refer
14  *CXXR to the CXXR website.
15  *CXXR */
16 
17 /*
18  * R : A Computer Language for Statistical Data Analysis
19  * Copyright (C) 1998--2007 The R Core Team.
20  *
21  * This program is free software; you can redistribute it and/or modify
22  * it under the terms of the GNU General Public License as published by
23  * the Free Software Foundation; either version 2 of the License, or
24  * (at your option) any later version.
25  *
26  * This program is distributed in the hope that it will be useful,
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29  * GNU General Public License for more details.
30  *
31  * You should have received a copy of the GNU General Public License
32  * along with this program; if not, a copy is available at
33  * http://www.r-project.org/Licenses/
34  */
35 
36 #ifndef ARITHMETIC_H
37 #define ARITHMETIC_H 1
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 SEXP do_math1(SEXP, SEXP, SEXP, SEXP);
44 SEXP do_math2(SEXP, SEXP, SEXP, SEXP);
45 SEXP do_math3(SEXP, SEXP, SEXP, SEXP);
46 SEXP do_math4(SEXP, SEXP, SEXP, SEXP);
47 #ifdef WHEN_MATH5_IS_THERE
48  SEXP do_math5(SEXP, SEXP, SEXP, SEXP);
49 #endif
50 SEXP do_cmathfuns(SEXP, SEXP, SEXP, SEXP);
51 
52 SEXP complex_math1(SEXP, SEXP, SEXP, SEXP);
53 SEXP complex_math2(SEXP, SEXP, SEXP, SEXP);
54 SEXP complex_unary(ARITHOP_TYPE, SEXP, SEXP);
55 SEXP complex_binary(ARITHOP_TYPE, SEXP, SEXP);
56 
57 SEXP R_binary(SEXP, SEXP, SEXP, SEXP);
58 SEXP R_unary(SEXP, SEXP, SEXP);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif /* ARITHMETIC_H */