Skip to content

Commit

Permalink
tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCremona committed May 3, 2024
1 parent ba11e28 commit 9f7c74b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libsrc/eclib/interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ using namespace NTL;

typedef ZZ bigint;

inline int is_long(const bigint& a) {return (a<=MAXLONG)&&(a>=MINLONG);}
inline int is_int(const bigint& a) {return (a<=MAXINT)&&(a>=MININT);}
int I2int(const bigint& x); // too long to inline
long I2long(const bigint& x); // too long to inline


// Reals and Complexes

Expand Down Expand Up @@ -210,9 +215,4 @@ inline int is_approx_zero(const bigcomplex& z)

string getenv_with_default(string env_var, string def_val);

inline int is_long(const bigint& a) {return (a<=MAXLONG)&&(a>=MINLONG);}
inline int is_int(const bigint& a) {return (a<=MAXINT)&&(a>=MININT);}
int I2int(const bigint& x); // too long to inline
long I2long(const bigint& x); // too long to inline

#endif // #define _INTERFACE_H_

0 comments on commit 9f7c74b

Please sign in to comment.