Skip to content
Snippets Groups Projects
Commit ead3725d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Style improvement to the hash map unit test.

parent 558e056f
Branches
Tags
1 merge request!543Fof
......@@ -46,6 +46,7 @@
#include "gravity.h"
#include "gravity_derivatives.h"
#include "gravity_properties.h"
#include "hashmap.h"
#include "hydro.h"
#include "hydro_properties.h"
#include "lock.h"
......
......@@ -20,15 +20,24 @@
/* Config parameters. */
#include "../config.h"
#include <fenv.h>
/* Local headers. */
#include "swift.h"
#include "../src/c_hashmap/hashmap.h"
#define NUM_KEYS (26 * 1000 * 1000)
int main(int argc, char *argv[]) {
/* Initialize CPU frequency, this also starts time. */
unsigned long long cpufreq = 0;
clocks_set_cpufreq(cpufreq);
/* Choke on FPEs */
#ifdef HAVE_FE_ENABLE_EXCEPT
feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
#endif
hashmap_t m;
message("Initialising hash table...");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment