mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Fixes for compiling on Android
This commit is contained in:
parent
f7639bc338
commit
396772c93a
4 changed files with 13 additions and 5 deletions
|
@ -1431,7 +1431,7 @@ static const uint64_t crack_states_bitsliced(statelist_t *p){
|
|||
#endif
|
||||
|
||||
if ( !lstate_p ) {
|
||||
__sync_fetch_and_add(&total_states_tested, bucket_states_tested);
|
||||
__atomic_fetch_add(&total_states_tested, bucket_states_tested, __ATOMIC_SEQ_CST);
|
||||
return key;
|
||||
}
|
||||
|
||||
|
@ -1618,7 +1618,7 @@ out:
|
|||
#endif
|
||||
|
||||
}
|
||||
__sync_fetch_and_add(&total_states_tested, bucket_states_tested);
|
||||
__atomic_fetch_add(&total_states_tested, bucket_states_tested, __ATOMIC_SEQ_CST);
|
||||
return key;
|
||||
}
|
||||
|
||||
|
@ -1636,8 +1636,8 @@ static void* crack_states_thread(void* x){
|
|||
if (keys_found) break;
|
||||
else if(key != -1) {
|
||||
if (TestIfKeyExists(key)) {
|
||||
__sync_fetch_and_add(&keys_found, 1);
|
||||
__sync_fetch_and_add(&foundkey, key);
|
||||
__atomic_fetch_add(&keys_found, 1, __ATOMIC_SEQ_CST);
|
||||
__atomic_fetch_add(&foundkey, key, __ATOMIC_SEQ_CST);
|
||||
printf("*");
|
||||
fflush(stdout);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue