mirror of
https://github.com/vasi/pixz
synced 2024-11-18 15:26:46 +00:00
More blocks, to smooth out inconsistent read times. Allow OPTS in LDFLAGS
This commit is contained in:
parent
c43bd28154
commit
3a87ea5231
2
Makefile
2
Makefile
@ -3,7 +3,6 @@ ifneq ($(shell gcc -v 2>&1 | grep 'Apple Inc'),)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
LIBPREFIX = /Library/Fink/sl64 /opt/local
|
LIBPREFIX = /Library/Fink/sl64 /opt/local
|
||||||
LDFLAGS = $(patsubst %,-L%/lib,$(LIBPREFIX)) -g -Wall
|
|
||||||
ifdef APPLE
|
ifdef APPLE
|
||||||
ifeq ($(CC),gcc)
|
ifeq ($(CC),gcc)
|
||||||
LDFLAGS += -search_paths_first
|
LDFLAGS += -search_paths_first
|
||||||
@ -12,6 +11,7 @@ endif
|
|||||||
OPT = -g -O0
|
OPT = -g -O0
|
||||||
CFLAGS = $(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT) -std=c99 \
|
CFLAGS = $(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT) -std=c99 \
|
||||||
-Wall -Wno-unknown-pragmas
|
-Wall -Wno-unknown-pragmas
|
||||||
|
LDFLAGS = $(patsubst %,-L%/lib,$(LIBPREFIX)) $(OPT) -Wall
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
COMPILE = $(CC) $(CFLAGS) -c -o
|
COMPILE = $(CC) $(CFLAGS) -c -o
|
||||||
|
2
common.c
2
common.c
@ -368,7 +368,7 @@ void pipeline_create(
|
|||||||
|
|
||||||
gPLProcessCount = num_threads();
|
gPLProcessCount = num_threads();
|
||||||
gPLProcessThreads = malloc(gPLProcessCount * sizeof(pthread_t));
|
gPLProcessThreads = malloc(gPLProcessCount * sizeof(pthread_t));
|
||||||
for (size_t i = 0; i < (int)(gPLProcessCount * 1.5 + 2); ++i) {
|
for (size_t i = 0; i < (int)(gPLProcessCount * 2 + 3); ++i) {
|
||||||
// create blocks, including a margin of error
|
// create blocks, including a margin of error
|
||||||
pipeline_item_t *item = malloc(sizeof(pipeline_item_t));
|
pipeline_item_t *item = malloc(sizeof(pipeline_item_t));
|
||||||
item->data = create();
|
item->data = create();
|
||||||
|
Loading…
Reference in New Issue
Block a user