Skip to content

Commit

Permalink
for file in $(find -name \*.c ) ; do sed -e "s/#include \"gmp\.h\"/#i…
Browse files Browse the repository at this point in the history
…nclude \"mpir.h\"/g" $file > temp ; mv temp $file ; done

for file in $(find -name \*.h ) ; do sed -e "s/#include \"gmp\.h\"/#include \"mpir.h\"/g" $file > temp ; mv temp $file ; done
for file in $(find -name \*.cc) ; do sed -e "s/#include \"gmp\.h\"/#include \"mpir.h\"/g" $file > temp ; mv temp $file ; done
  • Loading branch information
jasonmoxham committed Feb 12, 2009
1 parent 96dbe25 commit e554550
Show file tree
Hide file tree
Showing 606 changed files with 607 additions and 607 deletions.
2 changes: 1 addition & 1 deletion assert.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MA 02110-1301, USA. */

#include <stdio.h>
#include <stdlib.h>
#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion build.vc9/popham.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

#define OPERATION_popcount 1
Expand Down
2 changes: 1 addition & 1 deletion compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#include <stdio.h>
#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion cxx/isfuns.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MA 02110-1301, USA. */
#include <cctype>
#include <iostream>
#include <string>
#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion cxx/ismpf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ MA 02110-1301, USA. */
#include <string>
#include <clocale> // for localeconv

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion cxx/ismpq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MA 02110-1301, USA. */
#include <cctype>
#include <iostream>
#include <string>
#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion cxx/ismpz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ MA 02110-1301, USA. */
#include <cctype>
#include <iostream>
#include <string>
#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion cxx/ismpznw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MA 02110-1301, USA. */
#include <cctype>
#include <iostream>
#include <string>
#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion cxx/osdoprnti.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MA 02110-1301, USA. */
#include <cstdarg> /* for va_list and hence doprnt_funs_t */
#include <cstring> /* for strlen */

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion cxx/osfuns.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MA 02110-1301, USA. */
#include <stdarg.h> /* for va_list and hence doprnt_funs_t */
#include <string.h>

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion cxx/osmpf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ MA 02110-1301, USA. */
#include <stdarg.h> /* for va_list and hence doprnt_funs_t */
#include <string.h>

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion cxx/osmpq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ MA 02110-1301, USA. */
#include <stdarg.h> /* for va_list and hence doprnt_funs_t */
#include <string.h>

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion cxx/osmpz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ MA 02110-1301, USA. */
#include <stdarg.h> /* for va_list and hence doprnt_funs_t */
#include <string.h>

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion demos/calc/calc.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "gmp.h"
#include "mpir.h"
#define NO_CALC_H /* because it conflicts with normal calc.c stuff */
#include "calc-common.h"

Expand Down
2 changes: 1 addition & 1 deletion demos/calc/calcread.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#include <readline/readline.h>
#include <readline/history.h>

#include "gmp.h"
#include "mpir.h"


/* change this to "#define TRACE(x) x" for a few diagnostics */
Expand Down
2 changes: 1 addition & 1 deletion demos/expr/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <string.h>

#include "gmp.h"
#include "mpir.h"
#include "expr-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion demos/expr/exprf.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ MA 02110-1301, USA. */

#include <stdio.h>
#include <string.h>
#include "gmp.h"
#include "mpir.h"
#include "expr-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion demos/expr/exprfa.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <string.h>

#include "gmp.h"
#include "mpir.h"
#include "expr-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion demos/expr/exprq.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ MA 02110-1301, USA. */

#include <stdio.h>
#include <string.h>
#include "gmp.h"
#include "mpir.h"
#include "expr-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion demos/expr/exprqa.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ MA 02110-1301, USA. */


#include <stdio.h>
#include "gmp.h"
#include "mpir.h"
#include "expr-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion demos/expr/exprv.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MA 02110-1301, USA.
*/

#include <stdio.h>
#include "gmp.h"
#include "mpir.h"
#include "expr-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion demos/expr/exprz.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MA 02110-1301, USA. */
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "gmp.h"
#include "mpir.h"
#include "expr-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion demos/expr/exprza.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MA 02110-1301, USA. */
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "gmp.h"
#include "mpir.h"
#include "expr-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion demos/expr/run-expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>

#include "gmp.h"
#include "mpir.h"
#include "expr.h"


Expand Down
2 changes: 1 addition & 1 deletion demos/expr/t-expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h>

#include "gmp.h"
#include "mpir.h"
#include "tests.h"
#include "expr-impl.h"

Expand Down
2 changes: 1 addition & 1 deletion demos/factorize.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <stdio.h>
#include <string.h>

#include "gmp.h"
#include "mpir.h"

int flag_verbose = 0;

Expand Down
2 changes: 1 addition & 1 deletion demos/isprime.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA. */

#include <stdlib.h>
#include <stdio.h>
#include "gmp.h"
#include "mpir.h"

char *progname;

Expand Down
2 changes: 1 addition & 1 deletion demos/pexpr.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#include <sys/resource.h>
#endif

#include "gmp.h"
#include "mpir.h"

/* SunOS 4 and HPUX 9 don't define a canonical SIGSTKSZ, use a default. */
#ifndef SIGSTKSZ
Expand Down
2 changes: 1 addition & 1 deletion demos/primes.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA. */
we find possible record gaps. Should speed up the searches tremendously.
*/

#include "gmp.h"
#include "mpir.h"

struct primes
{
Expand Down
2 changes: 1 addition & 1 deletion demos/qcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#include <stdlib.h>
#include <string.h>

#include "gmp.h"
#include "mpir.h"

#ifndef M_PI
#define M_PI 3.14159265358979323846
Expand Down
2 changes: 1 addition & 1 deletion errno.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#include <stdlib.h>
#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

int gmp_errno = 0;
Expand Down
2 changes: 1 addition & 1 deletion extract-dbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

#ifdef XDEBUG
Expand Down
2 changes: 1 addition & 1 deletion invalid.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ MA 02110-1301, USA. */
#include <unistd.h> /* for getpid */
#endif

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <stdlib.h> /* for malloc, realloc, free */

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion mp_bpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
*/

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

const int mp_bits_per_limb = BITS_PER_MP_LIMB;
Expand Down
2 changes: 1 addition & 1 deletion mp_clz_tab.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"
#include "longlong.h"

Expand Down
2 changes: 1 addition & 1 deletion mp_dv_tab.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

/* Table to be indexed by character, to get its numerical value. Assumes ASCII
Expand Down
2 changes: 1 addition & 1 deletion mp_get_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#include <stdio.h> /* for NULL */
#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

void
Expand Down
2 changes: 1 addition & 1 deletion mp_minv_tab.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"


Expand Down
2 changes: 1 addition & 1 deletion mp_set_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

void
Expand Down
2 changes: 1 addition & 1 deletion mpbsd/itom.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#include "mp.h"
#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

MINT *
Expand Down
2 changes: 1 addition & 1 deletion mpbsd/mfree.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */

#include "mp.h"
#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

void
Expand Down
2 changes: 1 addition & 1 deletion mpbsd/min.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <ctype.h>
#include "mp.h"
#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"

extern const unsigned char __gmp_digit_value_tab[];
Expand Down
2 changes: 1 addition & 1 deletion mpbsd/mout.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <string.h>
#include "mp.h"
#include "gmp.h"
#include "mpir.h"
#include "gmp-impl.h"
#include "longlong.h"

Expand Down
Loading

0 comments on commit e554550

Please sign in to comment.