All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Amitoj Kaur Chawla" <amitoj1606@gmail.com>
Cc: <alsa-devel@alsa-project.org>, <perex@perex.cz>,
	<linux-kernel@vger.kernel.org>, <julia.lawall@lip6.fr>
Subject: Re: [PATCH] ALSA: riptide: Use DIV_ROUND_UP
Date: Thu, 30 Jun 2016 08:35:52 +0200	[thread overview]
Message-ID: <s5hr3bfrxo7.wl-tiwai@suse.de> (raw)
In-Reply-To: <20160629145628.GA13915@amitoj-Inspiron-3542>

On Wed, 29 Jun 2016 16:56:28 +0200,
Amitoj Kaur Chawla wrote:
> 
> The kernel.h macro DIV_ROUND_UP performs the computation
> (((n) + (d) - 1) /(d)) but is perhaps more readable.
> 
> The Coccinelle script used to make this change is as follows:
> @haskernel@
> @@
> 
> #include <linux/kernel.h>
> 
> @depends on haskernel@
> expression n,d;
> @@
> 
> (
> - (n + d - 1) / d
> + DIV_ROUND_UP(n,d)
> |
> - (n + (d - 1)) / d
> + DIV_ROUND_UP(n,d)
> )
> 
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>

Applied, thanks.


Takashi

WARNING: multiple messages have this Message-ID (diff)
From: Takashi Iwai <tiwai@suse.de>
To: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Cc: alsa-devel@alsa-project.org, perex@perex.cz,
	linux-kernel@vger.kernel.org, julia.lawall@lip6.fr
Subject: Re: [PATCH] ALSA: riptide: Use DIV_ROUND_UP
Date: Thu, 30 Jun 2016 08:35:52 +0200	[thread overview]
Message-ID: <s5hr3bfrxo7.wl-tiwai@suse.de> (raw)
In-Reply-To: <20160629145628.GA13915@amitoj-Inspiron-3542>

On Wed, 29 Jun 2016 16:56:28 +0200,
Amitoj Kaur Chawla wrote:
> 
> The kernel.h macro DIV_ROUND_UP performs the computation
> (((n) + (d) - 1) /(d)) but is perhaps more readable.
> 
> The Coccinelle script used to make this change is as follows:
> @haskernel@
> @@
> 
> #include <linux/kernel.h>
> 
> @depends on haskernel@
> expression n,d;
> @@
> 
> (
> - (n + d - 1) / d
> + DIV_ROUND_UP(n,d)
> |
> - (n + (d - 1)) / d
> + DIV_ROUND_UP(n,d)
> )
> 
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>

Applied, thanks.


Takashi

  parent reply	other threads:[~2016-06-30  6:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-29 14:56 [PATCH] ALSA: riptide: Use DIV_ROUND_UP Amitoj Kaur Chawla
2016-06-30  2:14 ` Takashi Sakamoto
2016-06-30  6:35 ` Takashi Iwai [this message]
2016-06-30  6:35   ` Takashi Iwai

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=s5hr3bfrxo7.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=amitoj1606@gmail.com \
    --cc=julia.lawall@lip6.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.