Add atomic types for ssize_t
This commit is contained in:
parent
424e3428b1
commit
438efede78
@ -98,6 +98,9 @@ JEMALLOC_GENERATE_COMPATABILITY_INT_ATOMICS(unsigned, u)
|
||||
JEMALLOC_GENERATE_INT_ATOMICS(size_t, zu, LG_SIZEOF_PTR)
|
||||
JEMALLOC_GENERATE_COMPATABILITY_INT_ATOMICS(size_t, zu)
|
||||
|
||||
JEMALLOC_GENERATE_INT_ATOMICS(ssize_t, zd, LG_SIZEOF_PTR)
|
||||
JEMALLOC_GENERATE_COMPATABILITY_INT_ATOMICS(ssize_t, zd)
|
||||
|
||||
JEMALLOC_GENERATE_INT_ATOMICS(uint32_t, u32, 2)
|
||||
JEMALLOC_GENERATE_COMPATABILITY_INT_ATOMICS(uint32_t, u32)
|
||||
|
||||
|
@ -249,6 +249,13 @@ TEST_BEGIN(test_atomic_zu) {
|
||||
}
|
||||
TEST_END
|
||||
|
||||
TEST_STRUCT(ssize_t, zd);
|
||||
TEST_BEGIN(test_atomic_zd) {
|
||||
INTEGER_TEST_BODY(ssize_t, zd);
|
||||
}
|
||||
TEST_END
|
||||
|
||||
|
||||
TEST_STRUCT(unsigned, u);
|
||||
TEST_BEGIN(test_atomic_u) {
|
||||
INTEGER_TEST_BODY(unsigned, u);
|
||||
@ -262,5 +269,6 @@ main(void) {
|
||||
test_atomic_u32,
|
||||
test_atomic_p,
|
||||
test_atomic_zu,
|
||||
test_atomic_zd,
|
||||
test_atomic_u);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user