{"_id":"simdle-native","_rev":"239816","name":"simdle-native","description":"libsimdle JavaScript bindings for Node.js","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"kasperisager","email":""}],"time":{"modified":"2023-03-24T16:58:02.000Z","created":"2022-09-05T07:48:16.248Z","1.1.1":"2023-03-24T14:06:22.939Z","1.1.0":"2022-10-10T08:27:39.565Z","1.0.3":"2022-09-07T10:16:08.612Z","1.0.2":"2022-09-07T06:30:31.067Z","1.0.1":"2022-09-05T18:05:30.240Z","1.0.0":"2022-09-05T07:48:16.248Z"},"users":{},"author":{"name":"Kasper Isager Dalsgarð","email":"kasper@funktionel.co"},"repository":{"type":"git","url":"git+https://github.com/holepunchto/simdle-native.git"},"versions":{"1.1.1":{"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":{"shasum":"919c249e4b883985b95db11812fbdcf38bca1157","size":111481,"noattachment":false,"key":"/simdle-native/-/simdle-native-1.1.1.tgz","tarball":"http://name.csiicloud.com:7001/simdle-native/download/simdle-native-1.1.1.tgz"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"directories":{},"maintainers":[{"name":"kasperisager","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simdle-native_1.1.1_1679666782723_0.005365912369405201"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-24T14:06:22.939Z","publish_time":1679666782939,"hasInstallScript":true,"_cnpm_publish_time":1679666782939},"1.1.0":{"name":"simdle-native","version":"1.1.0","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":"2f637e88fb3eecad6d1734e8a1ffa750c20e4914","_id":"simdle-native@1.1.0","_nodeVersion":"18.9.0","_npmVersion":"8.19.1","dist":{"shasum":"5b97ec2bc2d63652d228ec9b5a9d6e18a34afd3b","size":110524,"noattachment":false,"key":"/simdle-native/-/simdle-native-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/simdle-native/download/simdle-native-1.1.0.tgz"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"directories":{},"maintainers":[{"name":"kasperisager","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simdle-native_1.1.0_1665390459304_0.5756541360555378"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-10T08:36:17.349Z","hasInstallScript":true,"publish_time":1665390459565,"_cnpm_publish_time":1665390459565},"1.0.3":{"name":"simdle-native","version":"1.0.3","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":"988b3eb28f79f619ab85d36ef84a1c8ea9c29c33","_id":"simdle-native@1.0.3","_nodeVersion":"18.7.0","_npmVersion":"8.16.0","dist":{"shasum":"99878579bfcceb730a870cd990ff7a4342127e55","size":108057,"noattachment":false,"key":"/simdle-native/-/simdle-native-1.0.3.tgz","tarball":"http://name.csiicloud.com:7001/simdle-native/download/simdle-native-1.0.3.tgz"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"directories":{},"maintainers":[{"name":"kasperisager","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simdle-native_1.0.3_1662545768476_0.5097674870364792"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-07T11:13:10.428Z","hasInstallScript":true,"publish_time":1662545768612,"_cnpm_publish_time":1662545768612},"1.0.2":{"name":"simdle-native","version":"1.0.2","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":"e02db52f739ec8c6e23a77f5c15b45cae7be69a6","_id":"simdle-native@1.0.2","_nodeVersion":"18.7.0","_npmVersion":"8.16.0","dist":{"shasum":"70662480cee337ab94f5b0b9b0220054a882992a","size":100502,"noattachment":false,"key":"/simdle-native/-/simdle-native-1.0.2.tgz","tarball":"http://name.csiicloud.com:7001/simdle-native/download/simdle-native-1.0.2.tgz"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"directories":{},"maintainers":[{"name":"kasperisager","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simdle-native_1.0.2_1662532230928_0.12735598234256318"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-07T06:30:37.907Z","hasInstallScript":true,"publish_time":1662532231067,"_cnpm_publish_time":1662532231067},"1.0.1":{"name":"simdle-native","version":"1.0.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":"803e68b9a636a10eb1ce72a95513888f5020c280","_id":"simdle-native@1.0.1","_nodeVersion":"18.7.0","_npmVersion":"8.16.0","dist":{"shasum":"8f659502cd4381155752438338f48779b94cc654","size":100501,"noattachment":false,"key":"/simdle-native/-/simdle-native-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/simdle-native/download/simdle-native-1.0.1.tgz"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"directories":{},"maintainers":[{"name":"kasperisager","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simdle-native_1.0.1_1662401130038_0.48593867350983966"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-05T18:05:42.847Z","hasInstallScript":true,"publish_time":1662401130240,"_cnpm_publish_time":1662401130240},"1.0.0":{"name":"simdle-native","version":"1.0.0","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":"e8c6678f1f985de7b1c99b65f4c576f4efe36ae7","_id":"simdle-native@1.0.0","_nodeVersion":"18.7.0","_npmVersion":"8.16.0","dist":{"shasum":"74bb81857eefe517236cf4151b52e4926b125ae7","size":5992,"noattachment":false,"key":"/simdle-native/-/simdle-native-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/simdle-native/download/simdle-native-1.0.0.tgz"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"directories":{},"maintainers":[{"name":"kasperisager","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simdle-native_1.0.0_1662364095998_0.3102638455244351"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-05T08:02:57.203Z","hasInstallScript":true,"publish_time":1662364096248,"_cnpm_publish_time":1662364096248}},"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\nISC\n","_attachments":{},"homepage":"https://github.com/holepunchto/simdle-native#readme","bugs":{"url":"https://github.com/holepunchto/simdle-native/issues"},"license":"ISC"}