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 00031 #if !defined(_TIFA_TIFA_FACTOR_H_) 00032 00036 #define _TIFA_TIFA_FACTOR_H_ 00037 00038 #ifdef __cplusplus 00039 extern "C" { 00040 #endif 00041 00042 #include <gmp.h> 00043 00044 #include "array.h" 00045 #include "factoring_machine.h" 00046 #include "exit_codes.h" 00047 00078 ecode_t tifa_factor( 00079 mpz_array_t* const factors, 00080 uint32_array_t* const multis, 00081 const mpz_t n, 00082 const factoring_mode_t mode 00083 ); 00084 00085 #ifdef __cplusplus 00086 } 00087 #endif 00088 00089 #endif 00090