mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mul_u64_u64_div_u64: new implementation
@ 2024-07-03  3:34 Nicolas Pitre
  2024-07-03  3:34 ` [PATCH v2 1/2] mul_u64_u64_div_u64: make it precise always Nicolas Pitre
  2024-07-03  3:34 ` [PATCH v2 2/2] mul_u64_u64_div_u64: basic sanity test Nicolas Pitre
  0 siblings, 2 replies; 13+ messages in thread
From: Nicolas Pitre @ 2024-07-03  3:34 UTC (permalink / raw)
  To: Andrew Morton, Uwe Kleine-König; +Cc: Nicolas Pitre, linux-kernel

This provides an implementation for mul_u64_u64_div_u64() that always
produces exact results.

Changes from v1 (https://lkml.org/lkml/2024/6/28/1130):

- Use the already available u128 type instead of "unsigned __int128".
- Add a test module.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-07-05 12:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-03  3:34 [PATCH v2 0/2] mul_u64_u64_div_u64: new implementation Nicolas Pitre
2024-07-03  3:34 ` [PATCH v2 1/2] mul_u64_u64_div_u64: make it precise always Nicolas Pitre
2024-07-04 17:26   ` Uwe Kleine-König
2024-07-04 21:16     ` Nicolas Pitre
2024-07-05 10:19       ` Uwe Kleine-König
2024-07-05 12:21         ` Nicolas Pitre
2024-07-03  3:34 ` [PATCH v2 2/2] mul_u64_u64_div_u64: basic sanity test Nicolas Pitre
2024-07-03 17:35   ` Andrew Morton
2024-07-03 17:47     ` Nicolas Pitre
2024-07-03 21:36       ` Uwe Kleine-König
2024-07-04  6:40         ` Biju Das
2024-07-04  8:56           ` Biju Das
2024-07-04 16:42         ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®