00001 // Copyright (C) 2011 CNRS - Ecole Polytechnique - INRIA. 00002 // 00003 // This file is part of TIFA. 00004 // 00005 // TIFA is free software; you can redistribute it and/or modify it under the 00006 // terms of the GNU Lesser General Public License as published by the Free 00007 // Software Foundation; either version 2.1 of the License, or (at your option) 00008 // any later version. 00009 // 00010 // TIFA is distributed in the hope that it will be useful, but WITHOUT ANY 00011 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00012 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for 00013 // more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with this library; if not, write to the Free Software Foundation, 00017 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 00030 #if !defined(_TIFA_TDIV_H_) 00031 00035 #define _TIFA_TDIV_H_ 00036 00037 #ifdef __cplusplus 00038 extern "C" { 00039 #endif 00040 00041 #include <inttypes.h> 00042 #include <gmp.h> 00043 00044 #include "array.h" 00045 #include "factoring_machine.h" 00046 #include "exit_codes.h" 00047 00052 #define TDIV_DFLT_NPRIMES_TDIV (NFIRST_PRIMES/32) 00053 00084 ecode_t tdiv( 00085 mpz_array_t* const factors, 00086 uint32_array_t* const multis, 00087 const mpz_t n, 00088 const uint32_t nprimes 00089 ); 00090 00091 #ifdef __cplusplus 00092 } 00093 #endif 00094 00095 #endif