[v4 04/10] bus/dpaa: optimize bman acquire/release
Stephen Hemminger
stephen at networkplumber.org
Sun Jun 29 18:34:49 CEST 2025
On Wed, 11 Jun 2025 12:40:33 +0530
vanshika.shukla at nxp.com wrote:
> +#ifndef MAX_U16
> +#define MAX_U16 0xffff
> +#endif
> +#ifndef BIT_SIZE
> +#define BIT_SIZE(t) (sizeof(t) * 8)
> +#endif
> +#ifndef MAX_U32
> +#define MAX_U32 \
> + ((((uint32_t)MAX_U16) << BIT_SIZE(uint16_t)) | MAX_U16)
> +#endif
Standard library has UINT32_MAX and UINT16_MAX.
Can you use that instead?
More information about the dev
mailing list