aboutsummaryrefslogtreecommitdiffstats
path: root/src/znot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/znot.c')
-rw-r--r--src/znot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/znot.c b/src/znot.c
index bebc55b..e076cda 100644
--- a/src/znot.c
+++ b/src/znot.c
@@ -5,7 +5,7 @@
void
znot(z_t a, z_t b)
{
- size_t bits, i;
+ size_t bits;
if (unlikely(zzero(b))) {
SET_SIGNUM(a, 0);
@@ -16,8 +16,7 @@ znot(z_t a, z_t b)
a->used = b->used;
SET_SIGNUM(a, -zsignum(b));
- for (i = 0; i < a->used; i++)
- a->chars[i] = ~(b->chars[i]);
+ ZMEM_1OP(a->chars, b->chars, a->used, ~);
bits = BITS_IN_LAST_CHAR(bits);
if (bits)
a->chars[a->used - 1] &= ((zahl_char_t)1 << bits) - 1;