From 5e77b994435be4bef66ff596bf931e1fff97a77c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 12 Mar 2016 20:22:11 +0100 Subject: 64-bit chars out-perform 32-bit chars on almost all operations, and on all expensive operations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/zsetu.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/zsetu.c') diff --git a/src/zsetu.c b/src/zsetu.c index 37fbf7c..538ea37 100644 --- a/src/zsetu.c +++ b/src/zsetu.c @@ -13,9 +13,6 @@ zsetu(z_t a, unsigned long long int b) } ENSURE_SIZE(a, SIZE_MULTIPLE(b, *(a->chars))); SET_SIGNUM(a, 1); - a->used = 0; - while (b) { - a->chars[a->used++] = (zahl_char_t)b; - b >>= BITS_PER_CHAR; - } + a->chars[0] = (zahl_char_t)b; + a->used = 1; } -- cgit v1.2.3-70-g09d2