Re: [PATCH v12 04/11] lib: math: div64: add div64_s64_rem()

From: Andy Shevchenko

Date: Tue May 12 2026 - 10:44:56 EST


On Sun, May 10, 2026 at 01:42:22PM +0100, Rodrigo Alencar via B4 Relay wrote:

> Add div64_s64_rem() function, with 32-bit implementation that uses
> div64_u64_rem() and a branchless approach to resolve the sign of the
> remainder and quotient (negation in two's complement).

Cool, also chance to address:
drivers/iio/pressure/dps310.c:687: /* Kernel lacks a div64_s64_rem function; denoms are all positive */

Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

--
With Best Regards,
Andy Shevchenko