» Binary Operators
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Binary Operators

plugin plugin math
Credits: jens.a.e

about

If you know how to use << >> & | ~ ^ on values, this is for you. If you do not know: these operate on the binary values of the data directly and therefor speed up things sometimes with the cost of being more complicated to code - e.g. division by 2 on an integer (not a float or double) maps to

value >> 1

I missed them sparsely, so i made a quick and rough implementation.

You can also get LeastSignificantBytes (LSB) and MostSignificantBytes (MSB) from numerical values, for e.g. building MIDI messages i a patch more easly.
It also includes a re-implemetaion of "Bit", named "Fastbit" using shifting and being spreadable.

Nodenames: BitAND, BitOR, BitXOR, BitNOT, FastBit, LSB, MSB, LSB+MSB

Any bugs, issues and feature requests should be posted at https://github.com/jens-a-e/V4BitwiseOperators/issues or here.

Get it the source here https://github.com/jens-a-e/V4BitwiseOperators

P.S.: I know, providing a help patch is next on the list.

download

BitwiseOps.zip
30.10.11 [17:26 UTC] by jens.a.e | 668 downloads

West 07/11/2011 - 13:58

Thank you for fast bit, this is more dynamic than the one I build from Radix nodes. Any clever way to build a reversed version?

I had to put MSBandLSB.dll in the Bin directory to make this work, is the plugin folder not a better option?

anonymous user login

Shoutbox

~3h ago

joreg: reminder: this tuesday, oct 22nd: #vvvv meetup in #berlin 14-berlin-vvvv-meetup #visualprogramming

~11h ago

metrowave: @h99, nice site + useful...

~3d ago

h99: Moon, dammit

~3d ago

h99: NASA's CGI Monn kit https://svs.gsfc.nasa.gov/4720

~3d ago

~5d ago

joreg: Two #vvvv workshops this week in #berlin: Friday: Physical Computing, Saturday: Computer Vision. Tickets: upcoming-full-day-vvvv-gamma-workshops-in-berlin

~6d ago

joreg: @cznickesz also feel free to join our chat for such questions: chat

~6d ago

cznickesz: @joreg: Yeah, I´ll give it a try! Thx

~6d ago

joreg: @cznickesz: we're hoping this week. but depends on feedback. please test your project and let us know if it works.

~6d ago

cznickesz: @joreg: I should stop asking my questions so cryptic ;-) So right away: is final Beta39 hours, days or weeks away?