diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-10-01 23:40:29 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-10-01 23:40:29 +0200 |
commit | 5201c5af7032e5d12d915215a73a9942a0ec2761 (patch) | |
tree | 77ff0bcfad5132933319dfe2f013777bfe97cd80 /mpf | |
parent | a16317876af156a0d82ce1913e3bb79c35194706 (diff) | |
download | gmp-5201c5af7032e5d12d915215a73a9942a0ec2761.tar.gz |
* mpf/fits_sshort.c, mpf/fits_sint.c, mpf/fits_slong.c: New files.
Diffstat (limited to 'mpf')
-rw-r--r-- | mpf/fits_sint.c | 27 | ||||
-rw-r--r-- | mpf/fits_slong.c | 27 | ||||
-rw-r--r-- | mpf/fits_sshort.c | 27 |
3 files changed, 81 insertions, 0 deletions
diff --git a/mpf/fits_sint.c b/mpf/fits_sint.c new file mode 100644 index 000000000..a450e2019 --- /dev/null +++ b/mpf/fits_sint.c @@ -0,0 +1,27 @@ +/* mpf_fits_sint_p -- test whether an mpf fits an int. + +Copyright 2001 Free Software Foundation, Inc. + +This file is part of the GNU MP Library. + +The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your +option) any later version. + +The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with the GNU MP Library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA. */ + + +#define FUNCTION mpf_fits_sint_p +#define MAXIMUM INT_MAX +#define MINIMUM INT_MIN + +#include "fits_s.i" diff --git a/mpf/fits_slong.c b/mpf/fits_slong.c new file mode 100644 index 000000000..012ef3051 --- /dev/null +++ b/mpf/fits_slong.c @@ -0,0 +1,27 @@ +/* mpf_fits_slong_p -- test whether an mpf fits a long. + +Copyright 2001 Free Software Foundation, Inc. + +This file is part of the GNU MP Library. + +The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your +option) any later version. + +The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with the GNU MP Library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA. */ + + +#define FUNCTION mpf_fits_slong_p +#define MAXIMUM LONG_MAX +#define MINIMUM LONG_MIN + +#include "fits_s.i" diff --git a/mpf/fits_sshort.c b/mpf/fits_sshort.c new file mode 100644 index 000000000..2adcde635 --- /dev/null +++ b/mpf/fits_sshort.c @@ -0,0 +1,27 @@ +/* mpf_fits_sshort_p -- test whether an mpf fits a short. + +Copyright 2001 Free Software Foundation, Inc. + +This file is part of the GNU MP Library. + +The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your +option) any later version. + +The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with the GNU MP Library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA. */ + + +#define FUNCTION mpf_fits_sshort_p +#define MAXIMUM SHRT_MAX +#define MINIMUM SHRT_MIN + +#include "fits_s.i" |