diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-10-01 23:47:07 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-10-01 23:47:07 +0200 |
commit | b8de6871af754d853a522a88b3a3aff3723f963e (patch) | |
tree | e3f1f8ab9a48c731a867314335f52cc605f15587 /mpz/fits_sshort.c | |
parent | adf6d0e1e4981ef01338f6fae1c752976213e571 (diff) | |
download | gmp-b8de6871af754d853a522a88b3a3aff3723f963e.tar.gz |
* mpz/fits_sshort.c, mpz/fits_sint.c, mpz/fits_slong.c: New files.
Diffstat (limited to 'mpz/fits_sshort.c')
-rw-r--r-- | mpz/fits_sshort.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mpz/fits_sshort.c b/mpz/fits_sshort.c new file mode 100644 index 000000000..ec1601d4d --- /dev/null +++ b/mpz/fits_sshort.c @@ -0,0 +1,27 @@ +/* int mpz_fits_sshort_p (mpz_t z) -- test whether z fits a short. + +Copyright 1997, 2000, 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 mpz_fits_sshort_p +#define MAXIMUM SHRT_MAX +#define MINIMUM SHRT_MIN + +#include "fits_s.i" |