1 /* 2 Copyright (C) 2017 Tommy Hofmann 3 4 This file is part of FLINT. 5 6 FLINT is free software: you can redistribute it and/or modify it under 7 the terms of the GNU Lesser General Public License (LGPL) as published 8 by the Free Software Foundation; either version 2.1 of the License, or 9 (at your option) any later version. See <https://www.gnu.org/licenses/>. 10 */ 11 12 #define FMPZ_FACTOR_INLINES_C 13 14 #define ulong ulongxx /* interferes with system includes */ 15 #include <stdlib.h> 16 #include <stdio.h> 17 #undef ulong 18 #include <gmp.h> 19 #include "flint.h" 20 #include "fmpz.h" 21 fmpz_factor_get_fmpz(fmpz_t z,const fmpz_factor_t factor,slong i)22void fmpz_factor_get_fmpz(fmpz_t z, const fmpz_factor_t factor, slong i) 23 { 24 fmpz_set(z, factor->p + i); 25 } 26 27