Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce symbol exposure #9

Merged
merged 1 commit into from
Mar 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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