mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-23 00:36:42 -10:00
The first caller to move the curve's ready word from 0 to busy computes the constants; any other yields until it reads ready. There is no lock to create on first use, and none that can fail to be created. The concurrent first-use lane in the tls_retro matrix also runs against an ECDSA server, so six threads initialise P-256 at once. crypto/bench and smb_retro gain all targets, so the libretro-common link check builds them.
20 lines
709 B
Makefile
20 lines
709 B
Makefile
ROOT = ../../..
|
|
COMMON = $(ROOT)/libretro-common
|
|
CFLAGS ?= -O3
|
|
CPPFLAGS += -I$(COMMON)/include
|
|
SRC = bench.c $(COMMON)/crypto/crypto.c $(COMMON)/crypto/kdf.c $(COMMON)/crypto/pk.c \
|
|
$(COMMON)/hash/lrc_hash.c $(COMMON)/utils/md5.c $(COMMON)/streams/file_stream.c $(COMMON)/vfs/vfs_implementation.c \
|
|
$(COMMON)/file/file_path.c $(COMMON)/string/rstrtod.c $(COMMON)/file/file_path_io.c \
|
|
$(COMMON)/features/features_cpu.c $(COMMON)/compat/compat_strl.c $(COMMON)/time/rtime.c \
|
|
$(COMMON)/string/stdstring.c $(COMMON)/encodings/encoding_utf.c
|
|
|
|
all: bench
|
|
|
|
bench: $(SRC)
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(SRC) -lmbedcrypto -o $@
|
|
run: bench
|
|
./bench
|
|
clean:
|
|
rm -f bench
|
|
.PHONY: all run clean
|