Re: Strange results of DIV_ROUND_CLOSEST

2012-12-18 Thread Juergen Beisert
Hi Guenter, Guenter Roeck wrote: > On Tue, Dec 18, 2012 at 10:04:56PM +0100, Juergen Beisert wrote: > > Guenter Roeck wrote: > > > On Tue, Dec 18, 2012 at 04:03:41PM +0100, Juergen Beisert wrote: > > > > commit 263a523d18bca306016d75f5c8d5c57c37fe52fb changes the code of > > > > DIV_ROUND_CLOSEST

Re: Strange results of DIV_ROUND_CLOSEST

2012-12-18 Thread Guenter Roeck
On Tue, Dec 18, 2012 at 10:04:56PM +0100, Juergen Beisert wrote: > Hi Guenter, > > Guenter Roeck wrote: > > On Tue, Dec 18, 2012 at 04:03:41PM +0100, Juergen Beisert wrote: > > > commit 263a523d18bca306016d75f5c8d5c57c37fe52fb changes the code of > > > DIV_ROUND_CLOSEST in include/linux/kernel.h

Re: Strange results of DIV_ROUND_CLOSEST

2012-12-18 Thread Guenter Roeck
On Tue, Dec 18, 2012 at 10:04:56PM +0100, Juergen Beisert wrote: > Hi Guenter, > > Guenter Roeck wrote: > > On Tue, Dec 18, 2012 at 04:03:41PM +0100, Juergen Beisert wrote: > > > commit 263a523d18bca306016d75f5c8d5c57c37fe52fb changes the code of > > > DIV_ROUND_CLOSEST in include/linux/kernel.h

Re: Strange results of DIV_ROUND_CLOSEST

2012-12-18 Thread Juergen Beisert
Hi Guenter, Guenter Roeck wrote: > On Tue, Dec 18, 2012 at 04:03:41PM +0100, Juergen Beisert wrote: > > commit 263a523d18bca306016d75f5c8d5c57c37fe52fb changes the code of > > DIV_ROUND_CLOSEST in include/linux/kernel.h to fix a compile time > > warning. > > > > But now feeding in a zero into

Re: Strange results of DIV_ROUND_CLOSEST

2012-12-18 Thread Guenter Roeck
On Tue, Dec 18, 2012 at 04:03:41PM +0100, Juergen Beisert wrote: > Hi list, > > commit 263a523d18bca306016d75f5c8d5c57c37fe52fb changes the code of > DIV_ROUND_CLOSEST in include/linux/kernel.h to fix a compile time warning. > > But now feeding in a zero into this macro results into 4198403.

Strange results of DIV_ROUND_CLOSEST

2012-12-18 Thread Juergen Beisert
Hi list, commit 263a523d18bca306016d75f5c8d5c57c37fe52fb changes the code of DIV_ROUND_CLOSEST in include/linux/kernel.h to fix a compile time warning. But now feeding in a zero into this macro results into 4198403. Tested with gcc 4.4.3 and 4.7.2, on arch x86 and ARM. I can reproduce this

Strange results of DIV_ROUND_CLOSEST

2012-12-18 Thread Juergen Beisert
Hi list, commit 263a523d18bca306016d75f5c8d5c57c37fe52fb changes the code of DIV_ROUND_CLOSEST in include/linux/kernel.h to fix a compile time warning. But now feeding in a zero into this macro results into 4198403. Tested with gcc 4.4.3 and 4.7.2, on arch x86 and ARM. I can reproduce this

Re: Strange results of DIV_ROUND_CLOSEST

2012-12-18 Thread Guenter Roeck
On Tue, Dec 18, 2012 at 04:03:41PM +0100, Juergen Beisert wrote: Hi list, commit 263a523d18bca306016d75f5c8d5c57c37fe52fb changes the code of DIV_ROUND_CLOSEST in include/linux/kernel.h to fix a compile time warning. But now feeding in a zero into this macro results into 4198403. Tested

Re: Strange results of DIV_ROUND_CLOSEST

2012-12-18 Thread Juergen Beisert
Hi Guenter, Guenter Roeck wrote: On Tue, Dec 18, 2012 at 04:03:41PM +0100, Juergen Beisert wrote: commit 263a523d18bca306016d75f5c8d5c57c37fe52fb changes the code of DIV_ROUND_CLOSEST in include/linux/kernel.h to fix a compile time warning. But now feeding in a zero into this macro

Re: Strange results of DIV_ROUND_CLOSEST

2012-12-18 Thread Guenter Roeck
On Tue, Dec 18, 2012 at 10:04:56PM +0100, Juergen Beisert wrote: Hi Guenter, Guenter Roeck wrote: On Tue, Dec 18, 2012 at 04:03:41PM +0100, Juergen Beisert wrote: commit 263a523d18bca306016d75f5c8d5c57c37fe52fb changes the code of DIV_ROUND_CLOSEST in include/linux/kernel.h to fix a

Re: Strange results of DIV_ROUND_CLOSEST

2012-12-18 Thread Guenter Roeck
On Tue, Dec 18, 2012 at 10:04:56PM +0100, Juergen Beisert wrote: Hi Guenter, Guenter Roeck wrote: On Tue, Dec 18, 2012 at 04:03:41PM +0100, Juergen Beisert wrote: commit 263a523d18bca306016d75f5c8d5c57c37fe52fb changes the code of DIV_ROUND_CLOSEST in include/linux/kernel.h to fix a

Re: Strange results of DIV_ROUND_CLOSEST

2012-12-18 Thread Juergen Beisert
Hi Guenter, Guenter Roeck wrote: On Tue, Dec 18, 2012 at 10:04:56PM +0100, Juergen Beisert wrote: Guenter Roeck wrote: On Tue, Dec 18, 2012 at 04:03:41PM +0100, Juergen Beisert wrote: commit 263a523d18bca306016d75f5c8d5c57c37fe52fb changes the code of DIV_ROUND_CLOSEST in