summaryrefslogtreecommitdiff
path: root/src/libbiguint/bu_cmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbiguint/bu_cmp.c')
-rw-r--r--src/libbiguint/bu_cmp.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/libbiguint/bu_cmp.c b/src/libbiguint/bu_cmp.c
deleted file mode 100644
index 0c87e92..0000000
--- a/src/libbiguint/bu_cmp.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* ISC license. */
-
-#include <skalibs/biguint.h>
-
-int bu_cmp (uint32_t const *a, unsigned int an, uint32_t const *b, unsigned int bn)
-{
- an = bu_len(a, an) ;
- bn = bu_len(b, bn) ;
- if (an < bn) return -1 ;
- if (an > bn) return 1 ;
- while (bn--)
- {
- if (a[bn] < b[bn]) return -1 ;
- if (a[bn] > b[bn]) return 1 ;
- }
- return 0 ;
-}