This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Implementation of a simple Bloom Filter | |
| # @author Matt McCollow <[email protected]> | |
| import hashlib | |
| class Filter(): | |
| def __init__(self, debug=False): | |
| self.bits = 0x0 | |
| self.mask = 0xFFFF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SECTION .data | |
| msg db "Hello world" | |
| len equ $ - msg | |
| fname db "test", 0 | |
| SECTION .text | |
| global _start | |
| _start: | |
| mov rdi, fname ;param1 to open(), file name | |
| mov rsi, 101 ;param2 to open(), file mode |
OlderNewer