rsa-asm #4

Open
gbrochar wants to merge 37 commits from rsa-asm into master
1 changed files with 2 additions and 2 deletions
Showing only changes of commit adf7a34fa6 - Show all commits

View File

@ -37,8 +37,8 @@ int *generate_a(int *n) {
a[0] -= 1;
int cursor = 0;
// a = n - 2
while (true) {
a[cursor / 32] = a ^ (1 << (cursor % 32)
while (1) {
a[cursor / 32] = a[cursor / 32] ^ (1 << (cursor % 32));
if ((a[cursor / 32] >> (cursor % 32)) & 1 == 0)
break;
cursor++;