Skip to content

Commit

Permalink
fix faoso4,6
Browse files Browse the repository at this point in the history
seems to work correct now
part of GH #13
  • Loading branch information
rurban committed Mar 23, 2024
1 parent f51ec02 commit 09cc7da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/algorithms.h
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ const struct algo ALGOS[] = {
[_BWW] = {_BWW, OK, "bww", "bit parallel wide window", 0, 0},
[_FAOSO2] = {_FAOSO2, OK, "faoso2", "fast average optimal shift-or (u=2,m>2)", 3, 0},
[_FAOSO4] = {_FAOSO4, RNDCRASH, "faoso4", "fast average optimal shift-or (u=2,m>4)", 5, 0},
[_FAOSO6] = {_FAOSO6, FAIL, "faoso6", "fast average optimal shift-or (u=2,m>6)", 7, 0},
[_FAOSO6] = {_FAOSO6, RNDCRASH, "faoso6", "fast average optimal shift-or (u=2,m>6)", 7, 0},
[_AOSO2] = {_AOSO2, OK, "aoso2", "average optimal shift-or (q=2)", 2, 0},
[_AOSO4] = {_AOSO4, OK, "aoso4", "average optimal shift-or (q=4)", 4, 0},
[_AOSO6] = {_AOSO6, OK, "aoso6", "average optimal shift-or (q=6)", 6, 0},
Expand Down
2 changes: 1 addition & 1 deletion source/algos/faoso4.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void verify_large(unsigned char *y, int j, /*int n,*/ unsigned char *x, int m,
c -= (s / v + z * q);
i = j + c;
if (!memcmp(x, y + i, p_len)) {
(*count)++;
OUTPUT(i);
// printf("%d\n",i);
}
D &= ~(1U << s);
Expand Down
3 changes: 1 addition & 2 deletions source/algos/faoso6.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* Science, vol.3772, pp.376--387, Springer-Verlag, Berlin, (2005).
*
* Constraints: requires m>6
* Note: Broken search_large() m>31
*/

#include <stdint.h>
Expand Down Expand Up @@ -141,7 +140,7 @@ void verify_large(unsigned char *y, int j, int n, unsigned char *x, int m,
while (k < p_len && x[k] == y[i + k])
k++;
if (k == p_len)
(*count)++;
OUTPUTP(i);
D &= ~(1U << s);
}
}
Expand Down

0 comments on commit 09cc7da

Please sign in to comment.