]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mul_u64_u64_div_u64: basic sanity test
authorNicolas Pitre <npitre@baylibre.com>
Sun, 7 Jul 2024 19:05:20 +0000 (15:05 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:43:22 +0000 (20:43 -0700)
commit1635e62e75a7bbb1c6274f6b43911cedfe0da60a
tree9e79a2900f4571c6b988d1baab8018f70d8d0fd3
parentb29a62d87cc0af3e9d134e9e0863b2cb053070b8
mul_u64_u64_div_u64: basic sanity test

Verify that edge cases produce proper results, and some more.

[npitre@baylibre.com: avoid undefined shift value]
Link: https://lkml.kernel.org/r/7rrs9pn1-n266-3013-9q6n-1osp8r8s0rrn@syhkavp.arg
Link: https://lkml.kernel.org/r/20240707190648.1982714-3-nico@fluxnic.net
Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Cc: Biju Das <biju.das.jz@bp.renesas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/Kconfig.debug
lib/math/Makefile
lib/math/div64.c
lib/math/test_mul_u64_u64_div_u64.c [new file with mode: 0644]