Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp4132235imc; Thu, 14 Mar 2019 13:07:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnofWPXkiNT5X2JRhTxkldA6lPZluidazds0f/vsP5j4sBxUO38qw7W9ldt0ycgscEDePQ X-Received: by 2002:a65:6283:: with SMTP id f3mr47181879pgv.125.1552594038834; Thu, 14 Mar 2019 13:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552594038; cv=none; d=google.com; s=arc-20160816; b=K++1kax1VxCLCusO+FP8ftGMDef2ZVhDKoPDOb5U24f3k0j42TYHEX4SgtoEo5v7zT 3dMyTFmSmPSuX1kJx6toiS5rkQrrj6TeGYTEe3OAmnO6hYHRW/lW3Ae7p8DLSlFS7OqR w20/j75fezsvPmZdJ/UZs0Z39YQzv4OMxl4v+Fz2O037qvWoO48Mxc7BBS+LrGDqt75L qSXrOvPYmygbGdP8m3HwATJM2VjEg8n+vK+98sObQNwluKd4m7G3ZJjIF67HcEwR/ZAs L50hYGAFolaGitRjKvvGSwFd8N/VQm4rGGgtZPdZSTRgbQihPkOzlB+8CenY7UFm20PS RXwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id:date :mime-version:subject:references:in-reply-to:cc:to:from :dkim-signature; bh=gcpmbk+jd0iWV8QKlwVbOQzs8qrR8+lTwaxReVLl4pM=; b=mqfawrk4VHaVNFO8n+gMt4Y1uGufASkb1Nw4ae0fI1vHKCGsetRqgKX3kW/KjvBHz8 MjnKrHj9D1kyMmVh3+cmmWfpXsihi1wLuylrwMBKTUc5Y77gKcBfxMH11xEDvVeXkGsG uTEw3DVNM2XtkoZI2KMgxWRNK3PPNLT31ntozHXBHLNY6RvtufphuywB399szGjpPtq8 TDV7xoiKFzugd+NmRcC1WQvXLYtSCDqM57WK+iSumsRtunV8SGcw5j1m0q910rHUWPRF +6cpUIguq38lNtbQW2PJruDUpXBJHPdv2vN09Ar/i/JeTecA5x+PiISDDZGKrIASvGLr A5eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=vdx8LfPd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d90si15106752pld.97.2019.03.14.13.07.03; Thu, 14 Mar 2019 13:07:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=vdx8LfPd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727837AbfCNUFz (ORCPT + 99 others); Thu, 14 Mar 2019 16:05:55 -0400 Received: from forward500p.mail.yandex.net ([77.88.28.110]:42883 "EHLO forward500p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726444AbfCNUFy (ORCPT ); Thu, 14 Mar 2019 16:05:54 -0400 X-Greylist: delayed 354 seconds by postgrey-1.27 at vger.kernel.org; Thu, 14 Mar 2019 16:05:53 EDT Received: from mxback18j.mail.yandex.net (mxback18j.mail.yandex.net [IPv6:2a02:6b8:0:1619::94]) by forward500p.mail.yandex.net (Yandex) with ESMTP id A4C7D940426; Thu, 14 Mar 2019 22:59:57 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback18j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ylhy0F4dbV-xt0apvg4; Thu, 14 Mar 2019 22:59:56 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1552593596; bh=gcpmbk+jd0iWV8QKlwVbOQzs8qrR8+lTwaxReVLl4pM=; h=Message-Id:Cc:Subject:In-Reply-To:Date:References:To:From; b=vdx8LfPduNdx1OsTiPsBrywM8+199pyePhw0zZgWnrF2y5Z/wn0Rsr7u//7o5RCSg c5/VleT188wAG5CKAwXHG0JpEThQ78iCEtJzwfECX3XCXzgfWnCzNz+O17ikQqRecu T0g6bw9nO2ZEsSvmY5u8gohxNgNDbXzTuQczz6J0= Authentication-Results: mxback18j.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by sas2-2074c606c35d.qloud-c.yandex.net with HTTP; Thu, 14 Mar 2019 22:59:55 +0300 From: Andrey Abramov To: Andy Shevchenko , George Spelvin Cc: "geert@linux-m68k.org" , "13@sdf.org" <13@sdf.org>, "akpm@linux-foundation.org" , "daniel.wagner@siemens.com" , "dchinner@redhat.com" , "don.mullis@gmail.com" , "linux-kernel@vger.kernel.org" , "linux@rasmusvillemoes.dk" In-Reply-To: <20190314121811.GY9224@smile.fi.intel.com> References: <20190309140653.GO9224@smile.fi.intel.com> <201903091553.x29FrfMR018600@sdf.org> <20190314092958.GV9224@smile.fi.intel.com> <201903141009.x2EA9q1Z025888@sdf.org> <201903141153.x2EBrtKi000133@sdf.org> <20190314121811.GY9224@smile.fi.intel.com> Subject: Re: [PATCH 1/5] lib/sort: Make swap functions more generic MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Thu, 14 Mar 2019 22:59:55 +0300 Message-Id: <1145741552593595@sas2-2074c606c35d.qloud-c.yandex.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Pistols at dawn? > swap_bytes > swap_4byte_words > swap_8byte_words or >  swap_bytes / swap_ints / swap_longs >  swap_1 / swap_4 / swap_8 Yes, in my opinion, swap_bytes / swap_ints / swap_longs are the most readable because we have both swap_ints and swap_longs functions (in one file near each other), so I don't think that there will be any confusion about size. But actually, it doesn't matter which name will you take, because the meaning of each, in my opinion, is obvious enough, so I don't mind about any of these options. -- With Best Regards, Andrey Abramov