Re: [2.6.37-rc1] Build failure: __divdi3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Paris wrote:
> Interesting, is this a result of the compiler previously being able to
> optimize the division since it could tell it was a power of 2 and now
> that we have a private variable it can't?  The patch can easily be
> reverted without breaking anyone else....

It seems that GCC 3.x can optimize

  roundup((long long), (const))

but cannot optimize

  #define roundup(x, y) (                                 \
  {                                                       \
  	typeof(y) __y = y;                              \
  	(((x) + (__y - 1)) / __y) * __y;                \
  }                                                       \
  )

when y is a constant value.
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux