DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: dev@dpdk.org, maxime.coquelin@redhat.com
Subject: Re: [dpdk-dev] [PATCH] rte_reciprocal: make arg to rte_reciprocal_divide_u64 const
Date: Wed, 27 Mar 2019 12:14:44 +0100	[thread overview]
Message-ID: <4147107.f6clCcuQYr@xps> (raw)
Message-ID: <20190327111444.Qd_V-y5aw7fV5KqdBpn2V3wUsJe1p0chplYusGaRIEY@z> (raw)
In-Reply-To: <20190321195910.11140-1-stephen@networkplumber.org>

21/03/2019 20:59, Stephen Hemminger:
> The divisor is not modified here. Doesn't really matter for optimizaton
> since the function is inline already; but helps with expressing
> intent.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
>  static __rte_always_inline uint64_t
> -rte_reciprocal_divide_u64(uint64_t a, struct rte_reciprocal_u64 *R)
> +rte_reciprocal_divide_u64(uint64_t a, const struct rte_reciprocal_u64 *R)

Why not doing the same change for rte_reciprocal_divide()?

Should we advertise such API change?



  parent reply	other threads:[~2019-03-27 11:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-21 19:59 Stephen Hemminger
2019-03-21 19:59 ` Stephen Hemminger
2019-03-22 18:09 ` Maxime Coquelin
2019-03-22 18:09   ` Maxime Coquelin
2019-04-03 16:17   ` Thomas Monjalon
2019-04-03 16:17     ` Thomas Monjalon
2019-03-27 11:14 ` Thomas Monjalon [this message]
2019-03-27 11:14   ` Thomas Monjalon
2019-04-02 15:26   ` Stephen Hemminger
2019-04-02 15:26     ` Stephen Hemminger
2019-04-02 16:05     ` Thomas Monjalon
2019-04-02 16:05       ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4147107.f6clCcuQYr@xps \
    --to=thomas@monjalon.net \
    --cc=dev@dpdk.org \
    --cc=maxime.coquelin@redhat.com \
    --cc=stephen@networkplumber.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).