rockbox/lib/tlsf/src
William Wilgus 6cbf2160e5 tlsf fix corruption checks
Turns out (~PTR_MASK) != (0xFFFFFFFF - PTR_MASK) in 64 bit land

tmp_b = (bhdr_t*) ( (intptr_t)b->prev_hdr & BLOCK_SIZE );

using ~STATE_MASK or even #define BLOCK_SIZE (~PTR_MASK) resolves the issue

switching  BLOCK_SIZE TO  ~STATE_MASK appears to fix it

Also define BLOCK_SIZE (~PTR_MASK)

Fix a few signed / unsigned errors

Change-Id: Ica59db0faa2df408831c23312243ae19259dba6b
2023-01-02 10:09:46 -05:00
..
target.h tlsf: move to /lib (it's also used by plugins). 2012-03-28 23:02:39 +02:00
tlsf.c tlsf fix corruption checks 2023-01-02 10:09:46 -05:00
tlsf.h tlsf: Update to upstream 2.4.6 release 2022-12-31 15:21:55 -05:00