aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-13 01:04:48 +0100
committerMattias Andrée <maandree@kth.se>2016-03-13 01:05:00 +0100
commit58baaf9eaa1a0519766b9f5aabb510e1e6969d6c (patch)
treed0ee04f49deebd2f4940e24dafa1b7d77e273aeb /src
parentAdd possibility to compare against libgmp (diff)
downloadlibzahl-58baaf9eaa1a0519766b9f5aabb510e1e6969d6c.tar.gz
libzahl-58baaf9eaa1a0519766b9f5aabb510e1e6969d6c.tar.bz2
libzahl-58baaf9eaa1a0519766b9f5aabb510e1e6969d6c.tar.xz
Make zabs, zneg and zswap inline
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-rw-r--r--src/zabs.c10
-rw-r--r--src/zneg.c10
-rw-r--r--src/zswap.c12
3 files changed, 0 insertions, 32 deletions
diff --git a/src/zabs.c b/src/zabs.c
deleted file mode 100644
index d4de6c4..0000000
--- a/src/zabs.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#include "internals.h"
-
-
-void
-zabs(z_t a, z_t b)
-{
- SET(a, b);
- SET_SIGNUM(a, !zzero(a));
-}
diff --git a/src/zneg.c b/src/zneg.c
deleted file mode 100644
index 484d610..0000000
--- a/src/zneg.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#include "internals.h"
-
-
-void
-zneg(z_t a, z_t b)
-{
- SET(a, b);
- SET_SIGNUM(a, -zsignum(a));
-}
diff --git a/src/zswap.c b/src/zswap.c
deleted file mode 100644
index 452d712..0000000
--- a/src/zswap.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#include "internals.h"
-
-
-void
-zswap(z_t a, z_t b)
-{
- z_t t;
- *t = *a;
- *a = *b;
- *b = *t;
-}