Benchmarks: benchmark.c: add workaround for POSIX
@@ -433,17 +433,21 @@ static void benchmarkHashFunctionVs (void)
{
if (!cI && !i)
{
- fprintf (opmphmOut, "%lu", opmphmResults[i * (numberOfShapes * cCount * seeds) +
- s * (cCount * seeds) + cI * seeds + sI]);
- fprintf (foxOut, "%lu", foxResults[i * (numberOfShapes * cCount * seeds) +
- s * (cCount * seeds) + cI * seeds + sI]);
+ fprintf (opmphmOut, "%lu",
+ opmphmResults[i * (numberOfShapes * cCount * seeds) + s * (cCount * seeds) +
+ cI * seeds + sI]);
+ fprintf (foxOut, "%lu",
+ foxResults[i * (numberOfShapes * cCount * seeds) + s * (cCount * seeds) +
+ cI * seeds + sI]);
}
else
{
- fprintf (opmphmOut, ";%lu", opmphmResults[i * (numberOfShapes * cCount * seeds) +
- s * (cCount * seeds) + cI * seeds + sI]);
- fprintf (foxOut, ";%lu", foxResults[i * (numberOfShapes * cCount * seeds) +
- s * (cCount * seeds) + cI * seeds + sI]);
+ fprintf (opmphmOut, ";%lu",
+ opmphmResults[i * (numberOfShapes * cCount * seeds) + s * (cCount * seeds) +
+ cI * seeds + sI]);
+ fprintf (foxOut, ";%lu",
+ foxResults[i * (numberOfShapes * cCount * seeds) + s * (cCount * seeds) +
+ cI * seeds + sI]);
}
}
}
@@ -471,7 +475,8 @@ static void benchmarkHashFunctionVs (void)
*
* trials;n_%luc_%lu;... (each n and c are unique)
*
- * The number of needed seeds for this benchmarks is: nCount * numberOfShapes * keySetsPerShape (KeySets generation) + numberOfSeeds (tested seeds)
+ * The number of needed seeds for this benchmarks is: nCount * numberOfShapes * keySetsPerShape (KeySets generation) + numberOfSeeds (tested
+ * seeds)
*/
static void benchmarkMapping (void)
@@ -923,7 +928,7 @@ static void * shapeCommonStartEndInit (void)
*data = 0;
return data;
}
-static void shapefCommonStartEndDel (void * data)
+static void shapeCommonStartEndDel (void * data)
{
elektraFree (data);
}
@@ -1213,7 +1218,7 @@ static KeySetShape * getKeySetShapes (void)
out[shapeCount].parent = 0;
out[shapeCount].shapeInit = shapeCommonStartEndInit;
out[shapeCount].shapef = shapefCommonStartEnd;
- out[shapeCount].shapeDel = shapefCommonStartEndDel;
+ out[shapeCount].shapeDel = shapeCommonStartEndDel; // remove f
++shapeCount;
// shapefModules
