~ubuntu-branches/ubuntu/intrepid/ecl/intrepid

« back to all changes in this revision

Viewing changes to src/gmp/mpbsd/mout.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter Van Eynde
  • Date: 2007-04-09 11:51:51 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070409115151-ql8cr0kalzx1jmla
Tags: 0.9i-20070324-2
Upload to unstable. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* mout(MINT) -- Do decimal output of MINT to standard output.
2
2
 
3
 
Copyright 1991, 1994, 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
 
3
Copyright 1991, 1994, 1996, 2000, 2001, 2002, 2005 Free Software Foundation,
 
4
Inc.
4
5
 
5
6
This file is part of the GNU MP Library.
6
7
 
16
17
 
17
18
You should have received a copy of the GNU Lesser General Public License
18
19
along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
19
 
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20
 
MA 02111-1307, USA. */
 
20
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
21
MA 02110-1301, USA. */
21
22
 
22
23
#include <stdio.h>
23
24
#include <string.h>
35
36
  unsigned char *str;
36
37
  size_t str_size;
37
38
  int i;
38
 
  TMP_DECL (marker);
 
39
  TMP_DECL;
39
40
 
40
41
  x_size = x->_mp_size;
41
42
  if (x_size == 0)
50
51
      x_size = -x_size;
51
52
    }
52
53
 
53
 
  TMP_MARK (marker);
 
54
  TMP_MARK;
54
55
  x_ptr = x->_mp_d;
55
56
  MPN_SIZEINBASE (str_size, x_ptr, x_size, 10);
56
57
  str_size += 2;
89
90
        fputc (' ', stdout);
90
91
    }
91
92
  fputc ('\n', stdout);
92
 
  TMP_FREE (marker);
 
93
  TMP_FREE;
93
94
}