1 /*
2     Copyright (C) 2008, 2009 William Hart
3     Copyright (C) 2010 Fredrik Johansson
4 
5     This file is part of FLINT.
6 
7     FLINT is free software: you can redistribute it and/or modify it under
8     the terms of the GNU Lesser General Public License (LGPL) as published
9     by the Free Software Foundation; either version 2.1 of the License, or
10     (at your option) any later version.  See <https://www.gnu.org/licenses/>.
11 */
12 
13 #include <gmp.h>
14 #include "flint.h"
15 #include "fmpz.h"
16 #include "fmpz_vec.h"
17 
18 void
fmpz_factor_init(fmpz_factor_t factor)19 fmpz_factor_init(fmpz_factor_t factor)
20 {
21     factor->sign  = 1;
22     factor->p     = NULL;
23     factor->exp   = NULL;
24     factor->num   = 0;
25     factor->alloc = 0;
26 }
27