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


Groups > linux.kernel > #1713351 > unrolled thread

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

Started byAlexey Dobriyan <adobriyan@gmail.com>
First post2017-08-16 23:50 +0200
Last post2017-08-16 23:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromAlexey Dobriyan <adobriyan@gmail.com>
Date2017-08-16 23:50 +0200
SubjectRe: [patch net-next 1/3] idr: Use unsigned long instead of int
Message-ID<ufemm-3Wk-17@gated-at.bofh.it>
	[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.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web