src/dpdk/lib/librte_lpm/rte_lpm6.c
static uint8_t __attribute__((pure))
depth_to_mask_1b(uint8_t depth)
{
	/* To calculate a mask start with a 1 on the left hand side and right
	 * shift while populating the left hand side with 1's
	 */
	return (signed char)0x80 >> (depth - 1);
}
/*
 * Convert a depth to a one byte long mask
 *   Example: 4 will be converted to 0xF0
 */
Convert a depth to a one byte long mask
Example: 4 will be converted to 0xF0
Convert a depth to a one byte long mask Example : 4 will be converted to 0xF0
static uint8_t __attribute__((pure))
depth_to_mask_1b(uint8_t depth)
{
	return (signed char)0x80 >> (depth - 1);
}
static uint8_t __attribute__ ( ( pure ) ) depth_to_mask_1b ( uint8_t depth ) { return ( signed char ) 0x80 >> ( depth - 1 ) ; }
Convert a depth to a one byte long mask
   Example: 4 will be converted to 0xF0
Convert a depth to a one byte long mask Example : 4 will be converted to 0xF0
/* To calculate a mask start with a 1 on the left hand side and right
	 * shift while populating the left hand side with 1's
	 */