Skip to content

Instantly share code, notes, and snippets.

@geoff-nixon
Created August 18, 2013 12:37
Show Gist options
  • Save geoff-nixon/6261452 to your computer and use it in GitHub Desktop.
Save geoff-nixon/6261452 to your computer and use it in GitHub Desktop.
gmp 5.1.2: superficial patch to correct LTO / IPO in tests.
Index: tests/mpz/t-get_d_2exp.c
==============================================================================
--- tests/mpz/t-get_d_2exp.c
+++ tests/mpz/t-get_d_2exp.c
@@ -127,0 +128 @@
+ got == 1 ? got = got / 2, mpz_add_ui (z, z, 1) : got;
@@ -141,0 +143 @@
+ got == -1 ? got = got / 2, mpz_sub_ui (z, z, 1) : got;
Index: tests/mpf/t-get_d_2exp.c
==============================================================================
--- tests/mpf/t-get_d_2exp.c
+++ tests/mpf/t-get_d_2exp.c
@@ -90,0 +91 @@
+ got == 1 ? got = got / 2, mpf_add_ui (f, f, 1) : got;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment