Exemple #1
0
void status_update_cands(unsigned int cands)
{
	unsigned int saved_lo = status.cands.lo;
	add32to64(&status.cands, cands);
	if ((status.cands.lo ^ saved_lo) & 0xfff00000U)
		status_ticks_overflow_safety();
}
Exemple #2
0
void status_update_crypts(unsigned int count)
{
    unsigned int saved_hi;

    saved_hi = status.crypts.hi;
    add32to64(&status.crypts, count);

    if (status.crypts.hi != saved_hi)
        status_ticks_overflow_safety();
}
Exemple #3
0
void status_update_crypts(int64 *combs, unsigned int crypts)
{
	{
		unsigned int saved_hi = status.combs.hi;
		add64to64(&status.combs, combs);
		if (status.combs.hi < saved_hi)
			status.combs_ehi++;
	}

	{
		unsigned int saved_lo = status.crypts.lo;
		add32to64(&status.crypts, crypts);
		if ((status.crypts.lo ^ saved_lo) & 0xfff00000U)
			status_ticks_overflow_safety();
	}
}