Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2499141ybl; Thu, 9 Jan 2020 13:57:08 -0800 (PST) X-Google-Smtp-Source: APXvYqxQZgmBzJy9Dpk7rH2oY05TRA8DJ+lD50CxN0rD0CSN4y47l8jk6V4HSuzDdoTE/u2Ij5f2 X-Received: by 2002:a05:6830:1d6e:: with SMTP id l14mr42891oti.32.1578607028746; Thu, 09 Jan 2020 13:57:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578607028; cv=none; d=google.com; s=arc-20160816; b=zX/grCYEnw9dro2fFJM5E/AjaIXovI73uIHYb0DSvPNt3axI3AVyJrq87MJ57yqkJ1 +MDeAgK0i90C/lTAdS3xbXIE5asBQ8GoX2Xo+BdW2T5Vopm4G9VCZDmlO28+j+iwXesf Ty71V2+NJKIpCF6XVlZYTQaEU/7PFlRy4qpgz0JOupfpteyMsNmnCOFSUAJ49vYgn+mK VKAz5O50Nag8vXywIUE1KpBnLUCr+AC4qgHzT1CrCaZSeqvJlDcajitOoAWlC8KwM3M8 YRtZ1c5hXLWvMQl3+hMkRexVe8D/oAVArck8TTsjULK2XdfnHBc9B/KP1FLefeAjPjl3 S46w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=50l3EQlsHPGDE45IXqaqiY+Z6eWm213wtAcLnmgovY0=; b=GPttEOaErx7VroLuFWUGn2nOdAFlUs86sJ8xZdUqtt1FjDivq8cGhsmDoOTNp3jc3g iXnCGwAoyz3yq9oC+F7qIXdnvD/NJLqO2+mLCWYCt4nPPxOoTXqTJN6W2ixnpu63nAXH l4hB3MKG43/1+pPxOZIt14JASM7SXfqFYgUBv444Gm729cUj0aR0K8ebiwt3ZJlle2an HcDMC6Ln9oI/G/kezYgmR39dQ2uUBKDNFYWqXVdb7BU06OeEVjJsivXU9AVL7iRbc7if zdQMisSJfA3jV3eH4SHzxO1YUgR9mAxlms+8MBmXDNxGcT3BSBqQbTAkYTbNFWDC3/5C 3bIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=fiz2x0hV; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p62si4321658oig.101.2020.01.09.13.56.56; Thu, 09 Jan 2020 13:57:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=fiz2x0hV; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728831AbgAIV4D (ORCPT + 99 others); Thu, 9 Jan 2020 16:56:03 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:32945 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbgAIV4C (ORCPT ); Thu, 9 Jan 2020 16:56:02 -0500 Received: by mail-lf1-f66.google.com with SMTP id n25so6390622lfl.0 for ; Thu, 09 Jan 2020 13:56:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=50l3EQlsHPGDE45IXqaqiY+Z6eWm213wtAcLnmgovY0=; b=fiz2x0hVyDbEIvUUW5vih9esaEth7CXrVaiVG1pzHtAwX4+UGVE7CC5jAjhY1X/hZp +lznQIcHofB5YFelWZvOno8nmPW5hCWyv2zbRuyaiw+ap7ln45YUdVsbM6LzS7aJiz2G RGnPO1+RYKKDC+ZY1H15oHYZ4T3MyuczfF3kWyuW36nYeKO3cU+dBm8RAbcBsklBGi80 jDIDf0FWbt/+6q4prGTRVb0upCnT/RaTB23kZNMJQtYPvVIBXGI51zQWyJOngoS1uDKg +qJjG/z6u+3Eb99NhL+qbVnLnenIAJJZG20nLYocM8F/zTxl9gQXLdSRfvZA67cTFaao 62ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=50l3EQlsHPGDE45IXqaqiY+Z6eWm213wtAcLnmgovY0=; b=bI8QA8bVIO6BqVMgIaCnCnrE1LJvQmf62Lh9fiiHx8aCVo6vzowTpdjAJS8Fs3nUqH mplvMRrYZW5AeHE3znTXaGA48XPFAvxwWrVw6TqJvG3UI6eMsWylMiKmGBRbLTSB7Zi7 XlhhILFk6q+jVgiGpxGXLHc42lpbnKsuetnXp4Pcu8u2xBJdnGxCEOeaG9CEBaKuoVDc MXPB0IWao9DZGODPS1Roju85tasBSf3LWBhwS0EYTKPZBtdA79WkVZqjcI78AuAUmtX6 5usNMgdHLUtYFNV7PA76vjKwadiyFlkF4rljXeNDsz1p7IETEn/Ry1Rm6WM1c25BISnh ZxMQ== X-Gm-Message-State: APjAAAUD7ikFZGz0yY9vQjJgIaW+hDkCYwaNqU7KHogn2hiN4v/1ClA3 F6zQhbvIq1L9iM4swMkSiJ7REdizGqc= X-Received: by 2002:a19:7b0a:: with SMTP id w10mr7538743lfc.90.1578606961246; Thu, 09 Jan 2020 13:56:01 -0800 (PST) Received: from kynes (apn-37-7-124-67.dynamic.gprs.plus.pl. [37.7.124.67]) by smtp.gmail.com with ESMTPSA id w20sm3599502ljo.33.2020.01.09.13.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 13:56:00 -0800 (PST) Date: Thu, 9 Jan 2020 22:55:59 +0100 From: "michal.lowas-rzechonek@silvair.com" To: "Stotland, Inga" Cc: "Gix, Brian" , "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ] mesh: Correctly generate NetKey list Message-ID: <20200109215559.jsqfuybaztjnfe72@kynes> Mail-Followup-To: "Stotland, Inga" , "Gix, Brian" , "linux-bluetooth@vger.kernel.org" References: <20200109175715.22925-1-inga.stotland@intel.com> <20200109210006.e3qv6uxnr2w3isc5@kynes> <31a576190ecbd1ba3f7e779d746baf35815fbed9.camel@intel.com> <20200109212935.6dn5ivmnupfd5f2d@kynes> <7347c54a1ffa3cf45195b0d8ca53d59613f946b8.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7347c54a1ffa3cf45195b0d8ca53d59613f946b8.camel@intel.com> User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 01/09, Stotland, Inga wrote: > Well, shift is a less expensive operation than a division (I believe, > some compilers may substitute integer division by 2 with a shift). So leave this to the compiler. In 99.999% cases it knows better. http://www.linux-kongress.org/2009/slides/compiler_survey_felix_von_leitner.pdf slide 36 -- Michał Lowas-Rzechonek Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND