1 | static L<Bits> bitsFullChunks(Bits bits, int width) {
|
2 | int n = bits.n/width; // leave last chunk if too small |
3 | new L<Bits> l; |
4 | for i to n: |
5 | l.add(subBits(bits, i*width, (i+1)*width)); |
6 | ret l; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006142 |
| Snippet name: | bitsFullChunks |
| Eternal ID of this version: | #1006142/1 |
| Text MD5: | c757e0a559a1f2a497ecc7486da583a1 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-21 16:14:57 |
| Source code size: | 208 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 631 / 667 |
| Referenced in: | [show references] |