This file contains 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
/** | |
* @file concurrent_queue.hpp | |
* @author M. Sami GÜRPINAR <[email protected]> | |
* | |
* @brief | |
* Implementation of concurrent_queue. | |
* | |
*/ | |
#pragma once |
This file contains 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
/** | |
* @file concurrent_map.hpp | |
* @author M. Sami GÜRPINAR <[email protected]> | |
* | |
* @brief | |
* Implementation of concurrent_map. | |
*/ | |
#pragma once |
This file contains 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
/** | |
* Compute Internet Checksum for "count" bytes | |
* beginning at location "addr". | |
* @param addr start of the ip header | |
* @param count ip header size | |
* @return Taking the ones' complement (flipping every bit) yields 0000, | |
* which indicates that no error is detected. | |
*/ | |
uint16_t checksum(void *addr, int count) { | |
uint32_t sum = 0; |