From 66f376ea802614151568068e66be218643345df1 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Wed, 5 Mar 2025 22:43:55 +0100 Subject: [PATCH] Port to new memory model --- m-genint.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/m-genint.h b/m-genint.h index b19596c2..3e3e7e52 100644 --- a/m-genint.h +++ b/m-genint.h @@ -103,8 +103,7 @@ typedef struct m_genint_s { * meaning it can be used to index global unique resources shared * for all threads. */ -M_INLINE void -m_genint_init(m_genint_t s, unsigned int n) +M_P(void, m_genint, _init, m_genint_t s, unsigned int n) { M_ASSERT (s != NULL && n > 0 && n <= M_GENINT_MAX_ALLOC); const size_t alloc = (n + M_GEN1NT_LIMBSIZE - 1) / M_GEN1NT_LIMBSIZE; @@ -126,8 +125,7 @@ m_genint_init(m_genint_t s, unsigned int n) } /* Clear an integer generator (Destructor) */ -M_INLINE void -m_genint_clear(m_genint_t s) +M_P(void, m_genint, _clear, m_genint_t s) { M_GEN1NT_CONTRACT(s); M_MEMORY_FREE(atomic_ullong, s->data, s->max+1);