[PATCH] bitset(9): Add some operations

Sebastian Huber sebastian.huber at embedded-brains.de
Sun May 28 13:35:06 UTC 2017


Hello Alfred,

----- Alfred Perlstein <alfred at freebsd.org> 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.


More information about the freebsd-hackers mailing list