diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-04-29 21:54:39 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-04-29 21:55:15 +0200 |
| commit | 4bba6e7176632b4d760ba9362a1515552471d741 (patch) | |
| tree | edd86d32b0867990bf953568164800391b769589 /src/zsplit.c | |
| parent | refsheet: fix type of second parameter for zseti, zsetu, zcmpi, and zcmpu (diff) | |
| download | libzahl-4bba6e7176632b4d760ba9362a1515552471d741.tar.gz libzahl-4bba6e7176632b4d760ba9362a1515552471d741.tar.bz2 libzahl-4bba6e7176632b4d760ba9362a1515552471d741.tar.xz | |
Some optimisations, fix refsheet, and disable const/pure attributes in gmp in benchmark
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zsplit.c')
| -rw-r--r-- | src/zsplit.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/zsplit.c b/src/zsplit.c deleted file mode 100644 index afb8a33..0000000 --- a/src/zsplit.c +++ /dev/null @@ -1,22 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include "internals.h" - - -void -zsplit(z_t high, z_t low, z_t a, size_t delim) -{ - if (unlikely(zzero(a))) { - /* This is for performance. */ - SET_SIGNUM(high, 0); - SET_SIGNUM(low, 0); - return; - } - - if (unlikely(high == a)) { - ztrunc(low, a, delim); - zrsh(high, a, delim); - } else { - zrsh(high, a, delim); - ztrunc(low, a, delim); - } -} |
