DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] sched: support 64 bits greatest common divisor
@ 2021-08-23  8:15 Xueming Li
  2021-09-15 10:26 ` [dpdk-dev] [PATCH v1] sched: adds function to get " Xueming Li
  0 siblings, 1 reply; 10+ messages in thread
From: Xueming Li @ 2021-08-23  8:15 UTC (permalink / raw)
  Cc: dev, xuemingl, Cristian Dumitrescu, Jasvinder Singh

This patch changes inline function that compute the greatest common
divisor to 64 bits.

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
---
 lib/sched/rte_sched_common.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/sched/rte_sched_common.h b/lib/sched/rte_sched_common.h
index 96706df7bd..65c03329f6 100644
--- a/lib/sched/rte_sched_common.h
+++ b/lib/sched/rte_sched_common.h
@@ -51,10 +51,10 @@ rte_min_pos_4_u16(uint16_t *x)
  *    gcd(a, b) = gcd(b, a mod b)
  *
  */
-static inline uint32_t
-rte_get_gcd(uint32_t a, uint32_t b)
+static inline uint64_t
+rte_get_gcd(uint64_t a, uint64_t b)
 {
-	uint32_t c;
+	uint64_t c;
 
 	if (a == 0)
 		return b;
-- 
2.25.1


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

end of thread, other threads:[~2021-09-28  5:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23  8:15 [dpdk-dev] [PATCH] sched: support 64 bits greatest common divisor Xueming Li
2021-09-15 10:26 ` [dpdk-dev] [PATCH v1] sched: adds function to get " Xueming Li
2021-09-22 17:09   ` Kevin Traynor
2021-09-23  5:34     ` Xueming(Steven) Li
2021-09-23  8:11     ` [dpdk-dev] [PATCH v2 0/2] " Xueming Li
2021-09-23  8:11       ` [dpdk-dev] [PATCH v2 1/2] " Xueming Li
2021-09-23  9:53         ` Kevin Traynor
2021-09-23  8:11       ` [dpdk-dev] [PATCH v2 2/2] vdpa/mlx5: fix large VM memory region registration Xueming Li
2021-09-27 15:26       ` [dpdk-dev] [PATCH v2 0/2] sched: adds function to get 64 bits greatest common divisor Thomas Monjalon
2021-09-28  5:47         ` Xueming(Steven) Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).