{"name":"simdle-native","version":"1.1.1","description":"libsimdle JavaScript bindings for Node.js","main":"index.js","scripts":{"test":"standard && brittle test.mjs","prebuild":"prebuildify --napi","install":"node-gyp-build"},"repository":{"type":"git","url":"git+https://github.com/holepunchto/simdle-native.git"},"author":{"name":"Kasper Isager Dalsgarð","email":"kasper@funktionel.co"},"license":"ISC","bugs":{"url":"https://github.com/holepunchto/simdle-native/issues"},"homepage":"https://github.com/holepunchto/simdle-native#readme","dependencies":{"b4a":"^1.6.0","napi-macros":"^2.0.0","node-gyp-build":"^4.2.3"},"devDependencies":{"brittle":"^3.1.0","prebuildify":"^5.0.1","standard":"^17.0.0"},"gitHead":"9eebd0773331c7394087dccacf4fe1e56bde42e4","_id":"simdle-native@1.1.1","_nodeVersion":"19.7.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-X9kryL4w7LaPeiLR4uwOCBXI7/z2oYtvD3uz9yEVULznXGYFezZv7BS1aXeJguebD/iCU3d2b6utb63AY0lCtA==","shasum":"919c249e4b883985b95db11812fbdcf38bca1157","tarball":"http://registry-npm.ywwl.com/simdle-native/download/simdle-native-1.1.1.tgz","fileCount":34,"unpackedSize":439558,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIATpqg/Jpy75wD/1T0nGEzAuY4Xz1NvuiiGV1JFU6nLNAiBcOmHAKd8oIOPqwP2qdCQVaYDTs/2VB7TNfBdik6jXfg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHa5eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmofbQ//cxiL2aNbQERaC+3n5jhe/+6RLQNsh6XkynpwWWPejbxuV44f\r\nxkI4pJ07sPRQl9eKe1BqdV8VciUNF/flm1WSQ+Z6reUeEd/SQZClPHpqwehm\r\nL6j0jUOLQW8tedO8mGxnvTP74BpEOrXBiPo09c/VvvxNnO44ad7a0/cr0n61\r\nxu6L3L70ju0EKkPTqhlg0HBHfRXKE7eeYCYy9pzjBjJ/+ZaLITaBc2ARF4i1\r\ndwZt/XCrCybEZdOlujANzbD4dbO7cUU9Zt2ULjE02ZQBTGMVTidVXpdfD3Tl\r\nSdqwMq2Jp42YRjupUfNI9JQQ3Z7g64xMcPBBqb4bCxG9TWqJ5+XBTmaT7ghr\r\ntkzWZTOyFLz0ixgrVItzCZ2DH5GMmiyNFuxTqERmmtfOsBh6153HdATtR6s0\r\nTecHAY0E8Aa8TRsWZFEG02O5vDkKJdGkVE+MTCFB4RL3YvAdDJp2c8Wb9fg5\r\n7w7Tr/r70Chb9QipIOBnRCbfspaul1XsuqjlH3ccFuF3GbdxskTS90NIn39Y\r\nBL/xQHc5FgnUO/s7ADWVbQsVAY8n28u7fLwlvLmp7JmdsGdwcYt0m2gAYbwh\r\nS4+n043sn+WVx4rlFtuTBm9RbOS3kWpaYIrwDczKHo20ATLjm62T7mQzeH5O\r\nvuh1fWLfZepjB5crB2PJEavxf8Vw2Y5CvK4=\r\n=R/A9\r\n-----END PGP SIGNATURE-----\r\n","size":111481,"noattachment":false,"key":"/simdle-native/-/simdle-native-1.1.1.tgz"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"directories":{},"maintainers":[{"name":"kasperisager","email":"kasperisager@hey.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simdle-native_1.1.1_1679666782723_0.005365912369405201"},"_hasShrinkwrap":false,"readme":"# simdle-native\n\nhttps://github.com/holepunchto/libsimdle JavaScript bindings for Node.js.\n\n```sh\nnpm install simdle-native\n```\n\n## Usage\n\n```js\nconst { cnt } = require('simdle-native')\n\ncnt(Buffer.alloc(16, 0xff))\n// <Buffer 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08>\n```\n\n## API\n\nThe lane width of all APIs is determined by the input buffer. That is, if providing a `Uint8Array` the lane width will be 8 bits, if providing a `Uint16Array` the lane width will be 16 bits and so on.\n\n#### `const result = allo(buffer)`\n\nCheck if the buffer contains only ones.\n\n#### `const result = allz(buffer)`\n\nCheck if the buffer contains only zeros.\n\n#### `const result = and(a, b[, result])`\n\nCompute the bitwise AND of `a` and `b`. If `result` is not provided, a fresh buffer is allocated. The `result` buffer is returned to the caller.\n\n#### `const result = clear(a, b[, result])`\n\nClear the bits in `b` from `a`. If `result` is not provided, a fresh buffer is allocated. The `result` buffer is returned to the caller.\n\n#### `const result = clo(buffer[, result])`\n\nCount the number of leading ones in `buffer`, storing the result in `result`. If `result` is not provided, a fresh buffer is allocated. The `result` buffer is returned to the caller.\n\n#### `const result = clz(buffer[, result])`\n\nCount the number of leading zeroes in `buffer`, storing the result in `result`. If `result` is not provided, a fresh buffer is allocated. The `result` buffer is returned to the caller.\n\n#### `const result = cnt(buffer[, result])`\n\nCompute the population count in `buffer`, storing the result in `result`. If `result` is not provided, a fresh buffer is allocated. The `result` buffer is returned to the caller.\n\n#### `const result = cto(buffer[, result])`\n\nCount the number of trailing ones in `buffer`, storing the result in `result`. If `result` is not provided, a fresh buffer is allocated. The `result` buffer is returned to the caller.\n\n#### `const result = ctz(buffer[, result])`\n\nCount the number of trailing zeroes in `buffer`, storing the result in `result`. If `result` is not provided, a fresh buffer is allocated. The `result` buffer is returned to the caller.\n\n#### `const result = not(buffer[, result])`\n\nCompute the bitwise NOT in `buffer`, storing the result in `result`. If `result` is not provided, a fresh buffer is allocated. The `result` buffer is returned to the caller.\n\n#### `const result = or(a, b[, result])`\n\nCompute the bitwise OR of `a` and `b`. If `result` is not provided, a fresh buffer is allocated. The `result` buffer is returned to the caller.\n\n#### `const result = sum(buffer)`\n\nCompute the sum of `buffer` as a `bigint`.\n\n#### `const result = xor(a, b[, result])`\n\nCompute the bitwise XOR of `a` and `b`. If `result` is not provided, a fresh buffer is allocated. The `result` buffer is returned to the caller.\n\n## License\n\nApache-2.0\n","publish_time":1679666782939,"_cnpm_publish_time":1679666782939,"dist-tags":{"latest":"1.3.10"}}