[BACK]Return to init.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gmp / mpz

Diff for /OpenXM_contrib/gmp/mpz/Attic/init.c between version 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2000/09/09 14:12:53 version 1.1.1.3, 2003/08/25 16:06:33
Line 1 
Line 1 
 /* mpz_init() -- Make a new multiple precision number with value 0.  /* mpz_init() -- Make a new multiple precision number with value 0.
   
 Copyright (C) 1991, 1993, 1994, 1995 Free Software Foundation, Inc.  Copyright 1991, 1993, 1994, 1995, 2000, 2001, 2002 Free Software Foundation,
   Inc.
   
 This file is part of the GNU MP Library.  This file is part of the GNU MP Library.
   
Line 23  MA 02111-1307, USA. */
Line 24  MA 02111-1307, USA. */
 #include "gmp-impl.h"  #include "gmp-impl.h"
   
 void  void
 #if __STDC__  
 mpz_init (mpz_ptr x)  mpz_init (mpz_ptr x)
 #else  
 mpz_init (x)  
      mpz_ptr x;  
 #endif  
 {  {
   x->_mp_alloc = 1;    x->_mp_alloc = 1;
   x->_mp_d = (mp_ptr) (*_mp_allocate_func) (BYTES_PER_MP_LIMB);    x->_mp_d = (mp_ptr) (*__gmp_allocate_func) (BYTES_PER_MP_LIMB);
   x->_mp_size = 0;    x->_mp_size = 0;
   
   #ifdef __CHECKER__
     /* let the low limb look initialized, for the benefit of mpz_get_ui etc */
     x->_mp_d[0] = 0;
   #endif
 }  }

Legend:
Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>