Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sylvain Jasson
gmp
Commits
c54c02c8
Commit
c54c02c8
authored
Aug 12, 2021
by
Martin Maechler
Browse files
Move system headers first smartly => no NO_REMAP needed anymore
parent
d459d004
Changes
8
Hide whitespace changes
Inline
Side-by-side
src/Rgmp.h
View file @
c54c02c8
...
@@ -3,15 +3,14 @@
...
@@ -3,15 +3,14 @@
// gmp.h calls cstddef with __need_size_t defined
// gmp.h calls cstddef with __need_size_t defined
#include <cstddef>
#include <cstddef>
// and avoid the inclusion of stdlib.h
#include <cstdlib>
#include <cstdlib>
#include <cmath>
#include <cmath>
#include <gmp.h>
#include <gmp.h>
#include <R.h>
#include <R.h>
#define R_NO_REMAP // avoid collisions with stl definitions such as length()
#include <Rinternals.h>
#include <Rinternals.h>
#ifndef AS_INTEGER
#ifndef AS_INTEGER
// the only thing we use from <Rdefines.h> :
// the only thing we use from <Rdefines.h> :
...
...
src/biginteger.cc
View file @
c54c02c8
...
@@ -11,11 +11,11 @@
...
@@ -11,11 +11,11 @@
* \note Licence: GPL (>= 2)
* \note Licence: GPL (>= 2)
*/
*/
#include "biginteger.h"
#include <cstdio>
#include <stdio.h>
#include <iostream>
#include <iostream>
#include "biginteger.h"
using
std
::
string
;
using
std
::
string
;
biginteger
::
biginteger
(
const
char
*
raw
)
biginteger
::
biginteger
(
const
char
*
raw
)
...
...
src/bigrational.cc
View file @
c54c02c8
...
@@ -12,11 +12,11 @@
...
@@ -12,11 +12,11 @@
* \note Licence: GPL (>= 2)
* \note Licence: GPL (>= 2)
*/
*/
#include <cstdio>
#include "bigrational.h"
#include "bigrational.h"
#include "bigrationalR.h"
#include "bigrationalR.h"
#include <stdio.h>
using
std
::
string
;
using
std
::
string
;
...
...
src/bigrational.h
View file @
c54c02c8
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
#include <string>
#include <string>
#include "Rgmp.h"
#include "biginteger.h"
#include "biginteger.h"
/**
/**
...
...
src/bigvec.h
View file @
c54c02c8
...
@@ -14,9 +14,10 @@
...
@@ -14,9 +14,10 @@
#ifndef BIGVEC_HEADER_
#ifndef BIGVEC_HEADER_
#define BIGVEC_HEADER_ 1
#define BIGVEC_HEADER_ 1
#include <memory>
#include "bigmod.h"
#include "bigmod.h"
#include "templateMatrix.h"
#include "templateMatrix.h"
#include <memory>
/** \brief class bigvec
/** \brief class bigvec
*
*
...
...
src/extract_matrix.h
View file @
c54c02c8
...
@@ -19,12 +19,11 @@
...
@@ -19,12 +19,11 @@
#ifndef EXTRACT_MATRIX_HEADER_GMP_R_
#ifndef EXTRACT_MATRIX_HEADER_GMP_R_
#define EXTRACT_MATRIX_HEADER_GMP_R_ 1
#define EXTRACT_MATRIX_HEADER_GMP_R_ 1
#include <R.h>
#include <Rinternals.h>
#include <functional>
#include <functional>
#include <algorithm>
#include "bigvec_q.h"
#include "bigvec_q.h"
#include "bigintegerR.h"
#include "bigintegerR.h"
#include <algorithm>
extern
"C"
extern
"C"
{
{
...
...
src/matrix.cc
View file @
c54c02c8
...
@@ -20,9 +20,6 @@
...
@@ -20,9 +20,6 @@
using
namespace
std
;
using
namespace
std
;
#include "Rgmp.h"
#include "biginteger.h"
#include "bigintegerR.h"
#include "bigintegerR.h"
#include "matrix.h"
#include "matrix.h"
// need to call matrix_mul_q()
// need to call matrix_mul_q()
...
...
src/matrixq.cc
View file @
c54c02c8
...
@@ -25,7 +25,6 @@ using namespace std;
...
@@ -25,7 +25,6 @@ using namespace std;
#include "bigrational.h"
#include "bigrational.h"
#include "bigrationalR.h"
#include "bigrationalR.h"
//#include "bigintegerR.h"
#include "matrixq.h"
#include "matrixq.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment