Browse Source

fix comments add/subtract

master
Michael Hamburg 7 years ago
parent
commit
807a7e67de
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      src/GENERATED/c/p25519/f_generic.c
  2. +2
    -2
      src/GENERATED/c/p448/f_generic.c
  3. +2
    -2
      src/per_field/f_generic.tmpl.c

+ 2
- 2
src/GENERATED/c/p25519/f_generic.c View File

@@ -106,14 +106,14 @@ void gf_strong_reduce (gf a) {
assert(word_is_zero(carry + scarry_0));
}

/** Add two gf elements */
/** Subtract two gf elements d=a-b */
void gf_sub (gf d, const gf a, const gf b) {
gf_sub_RAW ( d, a, b );
gf_bias( d, 2 );
gf_weak_reduce ( d );
}

/** Subtract d = a-b */
/** Add two field elements d = a+b */
void gf_add (gf d, const gf a, const gf b) {
gf_add_RAW ( d, a, b );
gf_weak_reduce ( d );


+ 2
- 2
src/GENERATED/c/p448/f_generic.c View File

@@ -106,14 +106,14 @@ void gf_strong_reduce (gf a) {
assert(word_is_zero(carry + scarry_0));
}

/** Add two gf elements */
/** Subtract two gf elements d=a-b */
void gf_sub (gf d, const gf a, const gf b) {
gf_sub_RAW ( d, a, b );
gf_bias( d, 2 );
gf_weak_reduce ( d );
}

/** Subtract d = a-b */
/** Add two field elements d = a+b */
void gf_add (gf d, const gf a, const gf b) {
gf_add_RAW ( d, a, b );
gf_weak_reduce ( d );


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

@@ -95,14 +95,14 @@ void gf_strong_reduce (gf a) {
assert(word_is_zero(carry + scarry_0));
}

/** Add two gf elements */
/** Subtract two gf elements d=a-b */
void gf_sub (gf d, const gf a, const gf b) {
gf_sub_RAW ( d, a, b );
gf_bias( d, 2 );
gf_weak_reduce ( d );
}

/** Subtract d = a-b */
/** Add two field elements d = a+b */
void gf_add (gf d, const gf a, const gf b) {
gf_add_RAW ( d, a, b );
gf_weak_reduce ( d );


Loading…
Cancel
Save