From owner-freebsd-hackers@freebsd.org Sun May 28 13:35:06 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1E3FD85058 for ; Sun, 28 May 2017 13:35:06 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6F0681C31; Sun, 28 May 2017 13:35:06 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from [78.47.166.52] (helo=sslproxy04.your-server.de) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1dEyLR-00057Q-7c; Sun, 28 May 2017 15:34:57 +0200 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy04.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dEyLQ-0004iN-VI; Sun, 28 May 2017 15:34:57 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id CB91B2A0929; Sun, 28 May 2017 15:35:43 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Nge0AxUQvdcW; Sun, 28 May 2017 15:35:41 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 8B2262A160A; Sun, 28 May 2017 15:35:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id khCNd1acDfa3; Sun, 28 May 2017 15:35:41 +0200 (CEST) Received: from zimbra.eb.localhost (zimbra.eb.localhost [192.168.96.204]) by mail.embedded-brains.de (Postfix) with ESMTP id 74D4E2A0929; Sun, 28 May 2017 15:35:41 +0200 (CEST) Date: Sun, 28 May 2017 15:35:41 +0200 (CEST) From: Sebastian Huber To: Alfred Perlstein Cc: freebsd-hackers@freebsd.org Message-ID: <1209023277.129369.1495978541048.JavaMail.zimbra@embedded-brains.de> In-Reply-To: References: <1495198830-10573-1-git-send-email-sebastian.huber@embedded-brains.de> Subject: Re: [PATCH] bitset(9): Add some operations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.96.204] X-Mailer: Zimbra 8.7.2_GA_1736 (zclient/8.7.2_GA_1736) Thread-Topic: bitset(9): Add some operations Thread-Index: sPzf2sz/ZR2Crn0LLI08nE4iSKWFUw== X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.99.2/23425/Sun May 28 11:00:11 2017) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 May 2017 13:35:06 -0000 Hello Alfred, ----- Alfred Perlstein schrieb: > Would you consider using "3" instead of "2" as that would match what > machine opcodes typically are named. ex: OR3 instead of OR2. my reasoning was that the existing macros had one input operand and the new have two input operands. The existing macros don't follow your pattern. If you really don't like the new names, we can change them of course. > > Search for addl3 vs addl2 in this paper: > http://minnie.tuhs.org/CompArch/Resources/webext3.pdf I don't know a second architecture that has such opcode names. On most architectures the assembler is smart enough to figure out the number of operands. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber at embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.