Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1713351

Re: [patch net-next 1/3] idr: Use unsigned long instead of int

From Alexey Dobriyan <adobriyan@gmail.com>
Newsgroups linux.kernel
Subject Re: [patch net-next 1/3] idr: Use unsigned long instead of int
Date 2017-08-16 23:50 +0200
Message-ID <ufemm-3Wk-17@gated-at.bofh.it> (permalink)
References <ufemm-3Wk-19@gated-at.bofh.it> <ufemm-3Wk-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


	[CC trimmed]

On Tue, Aug 15, 2017 at 10:12:16PM -0400, Chris Mi wrote:
> IDR uses internally radix tree which uses unsigned long. It doesn't
> makes sense to have index as signed value.

It doesn't. But it makes sense to use "unsigned int" because it
generates smaller code on x86_64.

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [patch net-next 1/3] idr: Use unsigned long instead of int Alexey Dobriyan <adobriyan@gmail.com> - 2017-08-16 23:50 +0200

csiph-web