From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 21 15:20:46 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C57E1106564A for ; Tue, 21 Aug 2012 15:20:46 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8D5778FC0A for ; Tue, 21 Aug 2012 15:20:46 +0000 (UTC) Received: by dadr6 with SMTP id r6so3237445dad.13 for ; Tue, 21 Aug 2012 08:20:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=cacyrk3J+IwdSKDlz7T2ePwBidhF7kPNpUh4nz7UdIA=; b=QtqhpOg90ymiIIyfVHd2jpw36Ry5vxxr89kXFr8CnnhwdXbEMFxoZWzpvQ9MpK3MkQ k/B5fefuFQy34EHqae6lSfccEj7dfaqtJAsNrNig5YosoHeHVqo7dOziOPp9NNKVMiZz l9QHBNGHAl9VHe7dL8BJesBik+5CUgmhtrNkMSzE9i3FzE02UOKNwxvCAAUVuYJTTEat NsURpLlwphkAFOcxSq4DaYIJ41eiY6XiJCZomWaWXcIghdBqDEdIyrZWNmG7vM1VR3c3 rhw1xa0dPEZXPHUzUXb6JXJv+L3Hf3wAbKzf4GnhkQ5C+eU3uoW4cuM7i7BEh17tVtM5 kf8g== Received: by 10.68.232.138 with SMTP id to10mr7286064pbc.77.1345562440844; Tue, 21 Aug 2012 08:20:40 -0700 (PDT) Received: from monkey-bot.int.fusionio.com ([216.51.42.66]) by mx.google.com with ESMTPS id sr3sm1634505pbc.44.2012.08.21.08.20.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Aug 2012 08:20:40 -0700 (PDT) Sender: Warner Losh Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Tue, 21 Aug 2012 09:20:38 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <420BA06C-C776-47DB-B3BB-F1414C115F99@bsdimp.com> References: <50324DB4.6080905@cabletv.dp.ua> <5452BF37-3658-4C1F-B965-CE3EA28B6EA5@bsdimp.com> To: Wojciech Puchar X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQnTMt8lj5tKgQIzkt/evX0bFSWei8bSZTK+wwPc3s/KB35xSqSMe5raDfkI53ljBtRSXZPK Cc: freebsd-hackers@freebsd.org, Mitya , freebsd-net@freebsd.org Subject: Re: Replace bcopy() to update ether_addr X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2012 15:20:46 -0000 On Aug 21, 2012, at 1:42 AM, Wojciech Puchar wrote: >>=20 >> Even without this tagging, the code to do a structure level copy of 6 = bytes is going to be tiny... >=20 > true. >=20 > just to make sure it will be absolutely portable how about >=20 > bcopymacaddress(dst,src) >=20 > and then define it whatever you find it fastest on any architecture? How about just changing it to the *dst =3D *src, compiling it on all = architectures and then deciding if the improvement of the code from a = hand-tweaked thing is worth that uglification? Warner