Searched refs:FRAC_BITS (Results 1 – 1 of 1) sorted by relevance
94 #define FRAC_BITS 6 macro102 #if FRAC_BITS > 8103 #error FRAC_BITS must be less or equal 8111 Q(FRAC_BITS, COAP_DEFAULT_ACK_RANDOM_FACTOR)114 #define ACK_TIMEOUT Q(FRAC_BITS, COAP_DEFAULT_ACK_TIMEOUT)680 #define FP1 Q(FRAC_BITS, 1) in calc_timeout()691 result = SHR_FP(((result + FP1) * ACK_TIMEOUT), FRAC_BITS); in calc_timeout()695 return SHR_FP((COAP_TICKS_PER_SECOND * result), FRAC_BITS); in calc_timeout()