Bitwise operations on mutable cells in a stack
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
History.md
Makefile
README.md
component.json
index.js
package.json
test.js

README.md

bitcells

Bitwise operations on mutable cells in a stack

install

npm

$ npm install bitcells --save

component

$ component install jwerle/bitcells --save

usage

var Cell = require('bitcells').Cell
  , Stack = require('bitcells').Stack
  , assert = require('assert')


var $ = Stack()
  , a = Cell(4)
  , b = Cell(8)
  , c = Cell(16)

$.push(a).push(b)

assert(a & $);
assert(b & $);
assert(12 == $);

a.v = c;

assert(24 == $)

why?

https://www.kernel.org/pub/linux/kernel/people/geoff/cell/ps3-linux-docs/CellProgrammingTutorial/BasicsOfSIMDProgramming.html

license

MIT