Merge pull request #88 from akopytov/benchmarks
Add benchmarks for ck_pr_add_64(), ck_pr_faa_64() and ck_pr_neg_64().ck_pring
commit
255a47553a
@ -0,0 +1,16 @@
|
||||
#include <ck_pr.h>
|
||||
|
||||
#ifdef CK_F_PR_ADD_64
|
||||
#define ATOMIC ck_pr_add_64(object, 1)
|
||||
#define ATOMIC_STRING "ck_pr_add_64"
|
||||
#include "benchmark.h"
|
||||
#else
|
||||
#warning Did not find ADD_64 implementation.
|
||||
#include <stdlib.h>
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
#endif
|
@ -0,0 +1,16 @@
|
||||
#include <ck_pr.h>
|
||||
|
||||
#ifdef CK_F_PR_FAA_64
|
||||
#define ATOMIC ck_pr_faa_64(object, 1)
|
||||
#define ATOMIC_STRING "ck_pr_faa_64"
|
||||
#include "benchmark.h"
|
||||
#else
|
||||
#warning Did not find FAA_64 implementation.
|
||||
#include <stdlib.h>
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
#endif
|
@ -0,0 +1,16 @@
|
||||
#include <ck_pr.h>
|
||||
|
||||
#ifdef CK_F_PR_NEG_64
|
||||
#define ATOMIC ck_pr_neg_64(object)
|
||||
#define ATOMIC_STRING "ck_pr_neg_64"
|
||||
#include "benchmark.h"
|
||||
#else
|
||||
#warning Did not find NEG_64 implementation.
|
||||
#include <stdlib.h>
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
#endif
|
Loading…
Reference in new issue