lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cd57af9a2c1e494cbc8631a0347831dc@AcuMS.aculab.com>
Date:   Mon, 1 Apr 2019 14:47:55 +0000
From:   David Laight <David.Laight@...LAB.COM>
To:     "'gregkh@...uxfoundation.org'" <gregkh@...uxfoundation.org>,
        "Andrey Abramov" <st5pub@...dex.ru>
CC:     George Spelvin <lkml@....org>,
        "adrian.hunter@...el.com" <adrian.hunter@...el.com>,
        "ard.biesheuvel@...aro.org" <ard.biesheuvel@...aro.org>,
        "benh@...nel.crashing.org" <benh@...nel.crashing.org>,
        "bp@...en8.de" <bp@...en8.de>,
        "darrick.wong@...cle.com" <darrick.wong@...cle.com>,
        "dchinner@...hat.com" <dchinner@...hat.com>,
        "dedekind1@...il.com" <dedekind1@...il.com>,
        "hpa@...or.com" <hpa@...or.com>,
        "jlbec@...lplan.org" <jlbec@...lplan.org>,
        "jpoimboe@...hat.com" <jpoimboe@...hat.com>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-snps-arc@...ts.infradead.org" 
        <linux-snps-arc@...ts.infradead.org>,
        "mark@...heh.com" <mark@...heh.com>,
        "mingo@...hat.com" <mingo@...hat.com>,
        "mpe@...erman.id.au" <mpe@...erman.id.au>,
        "naveen.n.rao@...ux.vnet.ibm.com" <naveen.n.rao@...ux.vnet.ibm.com>,
        "paulus@...ba.org" <paulus@...ba.org>,
        "richard@....at" <richard@....at>,
        "tglx@...utronix.de" <tglx@...utronix.de>,
        "vgupta@...opsys.com" <vgupta@...opsys.com>,
        "x86@...nel.org" <x86@...nel.org>
Subject: RE: [PATCH 5/5] Lib: sort.h: replace int size with size_t size in the
 swap function

From: gregkh@...uxfoundation.org
> Sent: 31 March 2019 11:54
...
> Yes, "int" is a very nice variable for "size", you need to explain why
> it is better to use size_t here please.

Actually, on x86_64 you probably want 'unsigned int' to avoid the
compiler having to generate a sign-extending register move if the
value is ever used in a 64bit expression (eg an address calculation).

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ