From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941893AbcJEW3D (ORCPT ); Wed, 5 Oct 2016 18:29:03 -0400 Received: from smtprelay0186.hostedemail.com ([216.40.44.186]:51119 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934589AbcJEW24 (ORCPT ); Wed, 5 Oct 2016 18:28:56 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2693:2828:2895:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3874:4321:5007:8603:10004:10400:10848:11232:11658:11914:12663:12740:12760:13069:13255:13311:13357:13439:14659:21080:21433:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:5,LUA_SUMMARY:none X-HE-Tag: flag23_4d85fa276944d X-Filterd-Recvd-Size: 1794 Message-ID: <1475706531.1941.4.camel@perches.com> Subject: Re: [PATCH] bluetooth.h: __ variants of u8 and friends are not neccessary inside kernel From: Joe Perches To: Pavel Machek Cc: Marcel Holtmann , "Gustavo F. Padovan" , Johan Hedberg , "David S. Miller" , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 05 Oct 2016 15:28:51 -0700 In-Reply-To: <20161005221317.GA21551@amd> References: <20161003085640.GA8130@amd> <368810F9-519C-44B5-85D4-1815273438BF@holtmann.org> <1475689996.6105.11.camel@perches.com> <20161005191103.GA25972@amd> <1475694934.1941.1.camel@perches.com> <20161005221317.GA21551@amd> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.0-2ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2016-10-06 at 00:13 +0200, Pavel Machek wrote: > On Wed 2016-10-05 12:15:34, Joe Perches wrote: > > On Wed, 2016-10-05 at 21:11 +0200, Pavel Machek wrote: > > > On Wed 2016-10-05 10:53:16, Joe Perches wrote: [] > > > > trivia: > > > > It's generally faster to use bool instead of u8 foo:1; > > > Ok, but I'm not changing that in this patch. > > > (And actually, bool will take a lot more memory, right?) > > No worries, and bool is the same size as u8. > Exactly what I'm talking about :-). One byte vs. one bit, right? Memory isn't bit addressable. So it's the same byte, it just doesn't use a read/modify/write operation to update a value.