Browse Source

gcc cleanliness

master
Mike Hamburg 9 years ago
parent
commit
013b5a4a6b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/per_field/f_generic.tmpl.c

+ 1
- 1
src/per_field/f_generic.tmpl.c View File

@@ -59,7 +59,7 @@ mask_t gf_deserialize (gf x, const uint8_t serial[SER_BYTES], int with_hibit) {
buffer >>= LIMB_PLACE_VALUE(LIMBPERM(i)); buffer >>= LIMB_PLACE_VALUE(LIMBPERM(i));
scarry = (scarry + x->limb[LIMBPERM(i)] - MODULUS->limb[LIMBPERM(i)]) >> (8*sizeof(word_t)); scarry = (scarry + x->limb[LIMBPERM(i)] - MODULUS->limb[LIMBPERM(i)]) >> (8*sizeof(word_t));
} }
mask_t succ = with_hibit ? -1 : ~gf_hibit(x);
mask_t succ = with_hibit ? -(mask_t)1 : ~gf_hibit(x);
return succ & word_is_zero(buffer) & ~word_is_zero(scarry); return succ & word_is_zero(buffer) & ~word_is_zero(scarry);
} }




Loading…
Cancel
Save