From: Alexey Dobriyan <adobriyan@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Randy Dunlap <rdunlap@xenotime.net>,
linux-kernel@vger.kernel.org, behlendorf1@llnl.gov,
oleg@redhat.com
Subject: Re: [PATCH] remove abs64()
Date: Wed, 13 Apr 2011 00:16:58 +0300 [thread overview]
Message-ID: <20110412211658.GB20135@p183> (raw)
In-Reply-To: <20110412141040.a5706346.akpm@linux-foundation.org>
On Tue, Apr 12, 2011 at 02:10:40PM -0700, Andrew Morton wrote:
> On Tue, 12 Apr 2011 14:07:26 -0700
> Randy Dunlap <rdunlap@xenotime.net> wrote:
>
> > > + __builtin_choose_expr( \
> > > + __builtin_types_compatible_p(typeof(_x), long long), \
> > > + (unsigned long long)({ _x < 0 ? -_x : _x; }), \
> > > + _x))))); \
> > > +})
> >
> > that is better?
>
> I think so.
>
> It's a bit concerning that it changes the return type of abs().
I haven't read every abs() user, but, yes, sizeof(abs()) silently
changing is the issue.
next prev parent reply other threads:[~2011-04-12 21:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-12 21:00 [PATCH] remove abs64() Alexey Dobriyan
2011-04-12 21:07 ` Randy Dunlap
2011-04-12 21:10 ` Andrew Morton
2011-04-12 21:16 ` Alexey Dobriyan [this message]
2011-04-12 21:33 ` Andrew Morton
2011-04-12 21:40 ` Randy Dunlap
2011-04-12 21:14 ` Alexey Dobriyan
2011-04-13 14:27 ` Oleg Nesterov
2011-04-13 18:48 ` Andrew Morton
2011-04-13 20:20 ` Oleg Nesterov
2011-04-13 20:26 ` Andrew Morton
2011-04-13 20:36 ` Alexey Dobriyan
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=20110412211658.GB20135@p183 \
--to=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=behlendorf1@llnl.gov \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=rdunlap@xenotime.net \
/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.