aboutsummaryrefslogtreecommitdiffstats
path: root/src/zsetu.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-04-29 21:54:39 +0200
committerMattias Andrée <maandree@kth.se>2016-04-29 21:55:15 +0200
commit4bba6e7176632b4d760ba9362a1515552471d741 (patch)
treeedd86d32b0867990bf953568164800391b769589 /src/zsetu.c
parentrefsheet: fix type of second parameter for zseti, zsetu, zcmpi, and zcmpu (diff)
downloadlibzahl-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/zsetu.c')
-rw-r--r--src/zsetu.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/zsetu.c b/src/zsetu.c
deleted file mode 100644
index 42e8cec..0000000
--- a/src/zsetu.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#include "internals.h"
-
-
-void
-zsetu(z_t a, uint64_t b)
-{
- if (!b) {
- SET_SIGNUM(a, 0);
- return;
- }
- ENSURE_SIZE(a, 1);
- SET_SIGNUM(a, 1);
- a->chars[0] = (zahl_char_t)b;
- a->used = 1;
-}