Skip to content

Commit

Permalink
Merge pull request #9 from jserv/reduce-symbol-exposure
Browse files Browse the repository at this point in the history
Reduce symbol exposure
  • Loading branch information
WEI, CHEN committed Mar 16, 2018
2 parents 89e21a4 + 8eae749 commit 0325cb5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/dcurl.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ static int MAX_CPU_THREAD = -1;
static int MAX_GPU_THREAD = -1;

/* mutex protecting critical section */
pthread_mutex_t mtx;
static pthread_mutex_t mtx;

/* Semaphore that blocks excessive task*/
sem_t notify;
static sem_t notify;

/* check whether dcurl is initialized */
int isInitialized = 0;
static int isInitialized = 0;

/* Respective number for Mutex */
int *cpu_mutex_id = NULL;
int *gpu_mutex_id = NULL;
static int *cpu_mutex_id = NULL;
static int *gpu_mutex_id = NULL;

int get_mutex_id(int *mutex_id, int env)
static int get_mutex_id(int *mutex_id, int env)
{
int MAX = (env == 1) ? MAX_CPU_THREAD : MAX_GPU_THREAD;
for (int i = 0; i < MAX; i++) {
Expand Down
12 changes: 6 additions & 6 deletions src/pow_sse.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/* On Mac OS X, define our own get_nprocs_conf() */
#if defined(__APPLE__) || defined(__FreeBSD__)
#include <sys/sysctl.h>
unsigned int get_nprocs_conf()
static unsigned int get_nprocs_conf()
{
int numProcessors = 0;
size_t size = sizeof(numProcessors);
Expand All @@ -52,12 +52,12 @@ unsigned int get_nprocs_conf()
#define NPROCS
#endif

pthread_mutex_t *pow_sse_mutex;
int *stopSSE;
long long int *countSSE;
int DCURL_NUM_CPU = 0;
static pthread_mutex_t *pow_sse_mutex;
static int *stopSSE;
static long long int *countSSE;
static int DCURL_NUM_CPU = 0;

const int indices[] = {
static const int indices[] = {
0, 364, 728, 363, 727, 362, 726, 361, 725, 360, 724, 359, 723, 358, 722,
357, 721, 356, 720, 355, 719, 354, 718, 353, 717, 352, 716, 351, 715, 350,
714, 349, 713, 348, 712, 347, 711, 346, 710, 345, 709, 344, 708, 343, 707,
Expand Down

0 comments on commit 0325cb5

Please sign in to comment.