pelib
2.0.0
|
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdint.h>
#include <time.h>
#include <pthread.h>
#include <pelib/unit.h>
#include <pelib/complex.h>
Go to the source code of this file.
#define DATA_IM 12 |
#define DATA_REAL 10 |
#define debug_int | ( | var | ) | printf("[%s:%s:%d] %s = %d\n", __FILE__, __FUNCTION__, __LINE__, #var, var); |
Definition at line 218 of file test_stack.c.
#define debug_size_t | ( | var | ) | printf("[%s:%s:%d] %s = %zu\n", __FILE__, __FUNCTION__, __LINE__, #var, var); |
Definition at line 219 of file test_stack.c.
#define debug_str | ( | var | ) | printf("[%s:%s:%d] %s = \"%s\"\n", __FILE__, __FUNCTION__, __LINE__, #var, var); |
Definition at line 217 of file test_stack.c.
#define MAX_PUSH_POP 10 |
Definition at line 34 of file test_stack.c.
#define NB_THREADS 2 |
Definition at line 35 of file test_stack.c.
#define test_run | ( | test | ) |
printf("[%s:%s:%i] Running test '%s'... ", __FILE__, __FUNCTION__, __LINE__, #test);\ test_setup();\ if(test())\ {\ printf("passed\n");\ }\ else\ {\ printf("failed\n");\ }\ test_teardown();
Definition at line 37 of file test_stack.c.
typedef struct thread_aba_arg thread_aba_arg_t |
Definition at line 66 of file test_stack.c.
typedef struct thread_parallel_pushpop_arg thread_parallel_pushpop_arg_t |
Definition at line 56 of file test_stack.c.
Definition at line 96 of file test_stack.c.
Definition at line 81 of file test_stack.c.
void print_binary | ( | uint64_t | a | ) |
Definition at line 673 of file test_stack.c.
Definition at line 763 of file test_stack.c.
Definition at line 67 of file test_stack.c.
Definition at line 107 of file test_stack.c.
Definition at line 298 of file test_stack.c.
Definition at line 417 of file test_stack.c.
Definition at line 137 of file test_stack.c.
Definition at line 154 of file test_stack.c.
void test_pop_safe | ( | ) |
Definition at line 198 of file test_stack.c.
Definition at line 113 of file test_stack.c.
void test_push_safe | ( | ) |
Definition at line 174 of file test_stack.c.
Definition at line 337 of file test_stack.c.
Definition at line 222 of file test_stack.c.
void* thread_parallel_pop_safe | ( | void * | args | ) |
Definition at line 385 of file test_stack.c.
void* thread_parallel_push_safe | ( | void * | args | ) |
Definition at line 369 of file test_stack.c.
void* thread_parallel_pushpop | ( | void * | args | ) |
Definition at line 284 of file test_stack.c.