ta/wallet_ta.c
/**
  * Check if a multi-precision number of arbitrary size is equal to zero.
  * \param op1 The number to check. It is
  * to be used internally (only by the functions of the TA itself).
  * \param size The size of the multi-precision number op1, in number of
  *             bytes.
  * \return 1 if op1 is zero, 0 if op1 is not zero.
  */
Check if a multi-precision number of arbitrary size is equal to zero.
\param op1 The number to check. It is
to be used internally (only by the functions of the TA itself).
\param size The size of the multi-precision number op1, in number of
bytes.
\return 1 if op1 is zero, 0 if op1 is not zero.
Check if a multi - precision number of arbitrary size is equal to zero . \ param op1 The number to check . It is to be used internally ( only by the functions of the TA itself ) . \ param size The size of the multi - precision number op1 in number of bytes . \ return 1 if op1 is zero 0 if op1 is not zero .
static uint8_t big_is_zero_variable_size_internal(uint8_t *op1, uint8_t size)
{
	uint8_t i;
	uint8_t r;
	r = 0;
	for (i = 0; i < size; i++)
		r |= op1[i];
	return (uint8_t)((((uint16_t)(-(int)r)) >> 8) + 1);
}
static uint8_t big_is_zero_variable_size_internal ( uint8_t * op1 , uint8_t size ) { uint8_t i ; uint8_t r ; r = 0 ; for ( i = 0 ; i < size ; i ++ ) r |= op1 [ i ] ; return ( uint8_t ) ( ( ( ( uint16_t ) ( - ( int ) r ) ) >> 8 ) + 1 ) ; }
Check if a multi-precision number of arbitrary size is equal to zero.
Check if a multi - precision number of arbitrary size is equal to zero .
/* The following line does: "return r ? 0 : 1;". */