summaryrefslogtreecommitdiff
path: root/lib/tlsf/src
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tlsf/src')
-rw-r--r--lib/tlsf/src/tlsf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tlsf/src/tlsf.c b/lib/tlsf/src/tlsf.c
index cea53c3eb8..46ae7616b1 100644
--- a/lib/tlsf/src/tlsf.c
+++ b/lib/tlsf/src/tlsf.c
@@ -338,14 +338,14 @@ static __inline__ void MAPPING_INSERT(size_t _r, int *_fl, int *_sl)
338 338
339static __inline__ bhdr_t *FIND_SUITABLE_BLOCK(tlsf_t * _tlsf, int *_fl, int *_sl) 339static __inline__ bhdr_t *FIND_SUITABLE_BLOCK(tlsf_t * _tlsf, int *_fl, int *_sl)
340{ 340{
341 u32_t _tmp = _tlsf->sl_bitmap[*_fl] & (~0 << *_sl); 341 u32_t _tmp = _tlsf->sl_bitmap[*_fl] & (~0u << *_sl);
342 bhdr_t *_b = NULL; 342 bhdr_t *_b = NULL;
343 343
344 if (_tmp) { 344 if (_tmp) {
345 *_sl = ls_bit(_tmp); 345 *_sl = ls_bit(_tmp);
346 _b = _tlsf->matrix[*_fl][*_sl]; 346 _b = _tlsf->matrix[*_fl][*_sl];
347 } else { 347 } else {
348 *_fl = ls_bit(_tlsf->fl_bitmap & (~0 << (*_fl + 1))); 348 *_fl = ls_bit(_tlsf->fl_bitmap & (~0u << (*_fl + 1)));
349 if (*_fl > 0) { /* likely */ 349 if (*_fl > 0) { /* likely */
350 *_sl = ls_bit(_tlsf->sl_bitmap[*_fl]); 350 *_sl = ls_bit(_tlsf->sl_bitmap[*_fl]);
351 _b = _tlsf->matrix[*_fl][*_sl]; 351 _b = _tlsf->matrix[*_fl][*_sl];