Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

the use of static, get wrong result

Who can tell me why I get the wrong result? function: alt_u64 tpm_get_ticks(void) { static alt_u64 old_t=0 ; alt_u64 new_t=0; alt_u64 res_t=0; new_t = ...