{"_id":"simdle-native@1.3.10","bugs":{"url":"https://github.com/holepunchto/simdle-native/issues"},"dist":{"shasum":"6fbd6cfe5b846c9c06a5bfad5e1c73ebd97c781a","tarball":"http://registry-npm.ywwl.com/simdle-native/download/simdle-native-1.3.10.tgz","fileCount":30,"integrity":"sha512-fl1vIL4PcEyhMTgqnquYxAqeosr39rZKpKrUOoaPlPg3NjGj0rPzheUwS4/wEgbIkHx3xZ2PWFuvFksUFxbpyA==","signatures":[{"sig":"MEQCIEaq+HjzTWGQYhJb/a5v/lUnsxfy3bXdQ6z9FTa3AOA5AiACIg0FVWOeyhjISdYm73UYRaOc2DhQp4RTSlDrWRMHjA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDJcmbusPoP7YcE4pSNxf2vsQObIAJZ5e7/klSmwFrwpgIhAIy6PxSjiIvK7m6icWbfOK6TNa8QRz2BtuAvxaYfAv1M"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/simdle-native@1.3.10","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4049804,"size":824214,"noattachment":false,"key":"/simdle-native/-/simdle-native-1.3.10.tgz"},"main":"index.js","name":"simdle-native","addon":true,"author":{"name":"Holepunch"},"gitHead":"f40950b32928644a281a9ca92d0682923ff126e4","license":"Apache-2.0","scripts":{"lint":"prettier --check . && lunte","test":"npm run test:node && npm run test:bare","format":"prettier --write .","test:bare":"brittle-bare test.mjs","test:node":"brittle-node test.mjs"},"version":"1.3.10","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"407e7e23-2ad2-415f-b134-6b6d0e1e9162"}},"homepage":"https://github.com/holepunchto/simdle-native#readme","repository":{"url":"git+https://github.com/holepunchto/simdle-native.git","type":"git"},"_npmVersion":"11.19.1","description":"libsimdle JavaScript bindings for Node.js","directories":{},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_nodeVersion":"24.22.1","dependencies":{"b4a":"^1.6.0","require-addon":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"lunte":"^1.3.0","brittle":"^3.1.0","prettier":"^3.6.2","cmake-bare":"^1.1.7","cmake-napi":"^1.0.2","cmake-fetch":"^1.1.0","bare-compat-napi":"^1.3.2","prettier-config-holepunch":"^2.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/simdle-native_1.3.10_1793118202842_0.4226966043053171"},"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":1793118202979,"_cnpm_publish_time":1793118202979,"dist-tags":{"latest":"1.3.10"}}