base/data/m_str.c
/* Constant time character to lower function. */
Constant time character to lower function.
Constant time character to lower function .
static char M_ct_tolower(volatile int c)
{
	volatile int  r   = 0;
	volatile int  q   = 0;
	volatile int  d   = 0;
	int           ret = 0;
	if (c < 'A')
		r++;
	if (c > '@')
		q++;
	if (c < '[')
		q++;
	if (c > 'Z')
		r++;
	c += 32;
	d  = c - 32;
	if (q == 2)
		ret = c;
	if (q != 2)
		ret = d;
	return (char)ret;
}
static char M_ct_tolower ( volatile int c ) { volatile int r = 0 ; volatile int q = 0 ; volatile int d = 0 ; int ret = 0 ; if ( c < ' ' ) r ++ ; if ( c > ' ' ) q ++ ; if ( c < ' ' ) q ++ ; if ( c > ' ' ) r ++ ; c += 32 ; d = c - 32 ; if ( q == 2 ) ret = c ; if ( q != 2 ) ret = d ; return ( char ) ret ; }
Constant time character to lower function.
Constant time character to lower function .