duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| #include <stdio.h> | |
| #include <errno.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include <assert.h> | |
| #include <string.h> | |
| #define streq(a, b) (!strcmp((a), (b))) | |
| #ifndef __USE_GNU | |
| #define __USE_GNU |
| // C++11 32bit FNV-1 and FNV-1a string hasing (Fowler–Noll–Vo hash) | |
| // | |
| // Requires a compiler with C++11 support | |
| // See main(...) for examples | |
| #include <iostream> | |
| #include <cassert> | |
| namespace hash | |
| { |
| /* | |
| WorkCrew - a WebWorker work queue library | |
| Usage: | |
| // Create an 8 worker pool using worker.js. | |
| var crew = new WorkCrew('worker.js', 8); | |
| // Do something whenever a job is completed. | |
| // The result object structure is |