Home
last modified time | relevance | path

Searched refs:FRAC_BITS (Results 1 – 1 of 1) sorted by relevance

/net-tools-3.5.0/libcoap/src/
Dnet.c94 #define FRAC_BITS 6 macro
102 #if FRAC_BITS > 8
103 #error FRAC_BITS must be less or equal 8
111 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()