Browse Source

leave an extra FUTURE MAGIC note

master
Michael Hamburg 9 years ago
parent
commit
7e52b5b42e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/per_curve/elligator.tmpl.c

+ 3
- 0
src/per_curve/elligator.tmpl.c View File

@@ -124,6 +124,9 @@ API_NS(invert_elligator_nonuniform) (
mask_t sgn_s = -(hint & 1),
sgn_t_over_s = -(hint>>1 & 1),
sgn_r0 = -(hint>>2 & 1),
/* FUTURE MAGIC: eventually if there's a curve which needs sgn_ed_T but not sgn_r0,
* change this mask extraction.
*/
sgn_ed_T = -(hint>>3 & 1);
gf a, b, c, d;
API_NS(deisogenize)(a,c,p,sgn_s,sgn_t_over_s,sgn_ed_T);


Loading…
Cancel
Save