lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yw1xbov6h86l.fsf@unicorn.mansr.com>
Date:	Tue, 30 Aug 2011 22:59:46 +0100
From:	Måns Rullgård <mans@...sr.com>
To:	linux-kernel@...r.kernel.org
Subject: Re: [patch 03/36] Hexagon: Add bitops support

Pavel Machek <pavel@....cz> writes:

> Hi!
>
>> +	__asm__ __volatile__ (
>> +	"	{R10 = %1; R11 = asr(%2,#5); }\n"
>> +	"	{R10 += asl(R11,#2); R11 = and(%2,#0x1f)}\n"
>> +	"1:	R12 = memw_locked(R10);\n"
>> +	"	{ P0 = tstbit(R12,R11); R12 = clrbit(R12,R11); }\n"
>> +	"	memw_locked(R10,P1) = R12;\n"
>> +	"	{if !P1 jump 1b; %0 = mux(P0,#1,#0);}\n"
>
> Nice assembly syntax, btw. I can only wish architectures such as arm
> used something as readable...

The Blackfin syntax looks similar.  Now you may call me old-fashioned if
you want, but I personally find traditional assembler syntax much easier
to work with.

-- 
Måns Rullgård
mans@...sr.com

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ