--- libecb/ecb.pod 2011/05/26 20:49:40 1.7 +++ libecb/ecb.pod 2011/05/26 20:51:14 1.8 @@ -63,7 +63,7 @@ =over 4 -=item bool ecb_is_constant(expr) +=item bool ecb_is_constant(expr) [MACRO] Returns true iff the expression can be deduced to be a compile-time constant, and false otherwise. @@ -91,7 +91,7 @@ : (n * (uint32_t)rndm16 ()) >> 16; } -=item bool ecb_expect (expr, value) +=item bool ecb_expect (expr, value) [MACRO] Evaluates C and returns it. In addition, it tells the compiler that the C evaluates to C a lot, which can be used for static @@ -100,9 +100,9 @@ Usually, you want to use the more intuitive C and C functions instead. -=item bool ecb_likely (bool) +=item bool ecb_likely (bool) [MACRO] -=item bool ecb_unlikely (bool) +=item bool ecb_unlikely (bool) [MACRO] These two functions expect a expression that is true or false and return C<1> or C<0>, respectively, so when used in the condition of an C or @@ -142,7 +142,7 @@ real_reserve_method (size); /* presumably noinline */ } -=item bool ecb_assume (cond) +=item bool ecb_assume (cond) [MACRO] Try to tell the compiler that some condition is true, even if it's not obvious. @@ -178,7 +178,7 @@ never be executed. Apart from supressing a warning in some cases, this function can be used to implement C or similar functions. -=item bool ecb_prefetch (addr, rw, locality) +=item bool ecb_prefetch (addr, rw, locality) [MACRO] Tells the compiler to try to prefetch memory at the given Cess for either reading (c = 0) or writing (C = 1). A C of @@ -228,10 +228,10 @@ =item int ecb_popcount32 (uint32_t x) -=item uint32_t ecb_bswap32 (uint32_t x) - =item uint32_t ecb_bswap16 (uint32_t x) +=item uint32_t ecb_bswap32 (uint32_t x) + =item uint32_t ecb_rotr32 (uint32_t x, unsigned int count) =item uint32_t ecb_rotl32 (uint32_t x, unsigned int count) @@ -250,7 +250,7 @@ =over 4 -=item ecb_array_length (name) [MACRO] +=item element_count = ecb_array_length (name) [MACRO] =back