Replace locking by atomic operations
commit18e67e1888a801d550b3a9e3e21943fca0d45875
authorSteffen Jaeckel <s@jaeckel.eu>
Thu, 14 Mar 2024 10:42:34 +0000 (14 11:42 +0100)
committerSteffen Jaeckel <s@jaeckel.eu>
Wed, 27 Mar 2024 15:25:27 +0000 (27 16:25 +0100)
treecf92ce2217a95ebc8fff39e0cc362df2747cb357
parentbd66fccee4bddfb9334fd419444665abeaea6034
Replace locking by atomic operations

`s_warray_init()` and `s_warray_free()` are not safe and MUST NOT be called
from multiple threads.

This also removes `MP_WARRAY_NUM`, since automatic initialization will not
be safe for more than one thread.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
.github/workflows/main.yml
demo/test.c
doc/bn.tex
mp_warray_free.c
mp_warray_init.c
s_mp_warray_get.c
s_mp_warray_put.c
tommath.h
tommath_class.h
tommath_private.h