you win - added to the wiki
-m

Am 17.10.2011 um 20:09 schrieb Ben Jackson:

> On Mon, Oct 17, 2011 at 08:55:39AM +0200, Michael Haberler wrote:
>> lut5 is quite useful - I rather use that than gobs of and,or and not
>> 
>> here's a trivial script to make it a bit easier to use: 
>> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Lut5
> 
> Even simpler:
> 
> i0 = 0xaaaaaaaa
> i1 = 0xcccccccc
> i2 = 0xf0f0f0f0
> i3 = 0xff00ff00
> i4 = 0xffff0000
> 
> and as long as you stick to bitwise operations (~ for not, |, &, ^) you
> can simply evaluate your expression directly:
> 
> print '0x%08x' % ((i2 & i1) | (~i2 & i0))
> 
> -- 
> Ben Jackson AD7GD
> <[email protected]>
> http://www.ben.com/
> 
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to