• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/contrib/octeon-sdk/cvmx-malloc/

Lines Matching defs:nb

2747   INTERNAL_SIZE_T    nb;      /* padded request size */
2765 checked_request2size(bytes, nb);
2910 INTERNAL_SIZE_T nb; /* normalized request size */
2939 checked_request2size(bytes, nb);
2947 if ((unsigned long)(nb) <= (unsigned long)(av->max_fast)) {
2948 fb = &(av->fastbins[(fastbin_index(nb))]);
2951 check_remalloced_chunk(av, victim, nb);
2965 if (in_smallbin_range(nb)) {
2966 idx = smallbin_index(nb);
2974 set_inuse_bit_at_offset(victim, nb);
2979 check_malloced_chunk(av, victim, nb);
2997 idx = largebin_index(nb);
3029 if (in_smallbin_range(nb) &&
3032 (unsigned long)(size) > (unsigned long)(nb + MINSIZE)) {
3035 remainder_size = size - nb;
3036 remainder = chunk_at_offset(victim, nb);
3041 set_head(victim, nb | PREV_INUSE);
3046 check_malloced_chunk(av, victim, nb);
3056 if (size == nb) {
3059 check_malloced_chunk(av, victim, nb);
3108 if (!in_smallbin_range(nb)) {
3114 if ((unsigned long)(size) >= (unsigned long)(nb)) {
3115 remainder_size = size - nb;
3122 check_malloced_chunk(av, victim, nb);
3127 remainder = chunk_at_offset(victim, nb);
3130 set_head(victim, nb | PREV_INUSE);
3134 check_malloced_chunk(av, victim, nb);
3192 assert((unsigned long)(size) >= (unsigned long)(nb));
3194 remainder_size = size - nb;
3205 check_malloced_chunk(av, victim, nb);
3211 remainder = chunk_at_offset(victim, nb);
3216 if (in_smallbin_range(nb))
3219 set_head(victim, nb | PREV_INUSE);
3223 check_malloced_chunk(av, victim, nb);
3248 if ((unsigned long)(size) >= (unsigned long)(nb + MINSIZE)) {
3249 remainder_size = size - nb;
3250 remainder = chunk_at_offset(victim, nb);
3252 set_head(victim, nb | PREV_INUSE);
3256 check_malloced_chunk(av, victim, nb);
3262 to possibly avoid expanding memory. This can occur only if nb is
3267 assert(in_smallbin_range(nb));
3269 idx = smallbin_index(nb); /* restore original bin index */
3526 INTERNAL_SIZE_T nb; /* padded request size */
3559 checked_request2size(bytes, nb);
3569 if ((unsigned long)(oldsize) >= (unsigned long)(nb)) {
3581 (unsigned long)(nb + MINSIZE)) {
3582 set_head_size(oldp, nb );
3583 av->top = chunk_at_offset(oldp, nb);
3584 set_head(av->top, (newsize - nb) | PREV_INUSE);
3594 (unsigned long)(nb)) {
3601 newmem = _int_malloc(av, nb - MALLOC_ALIGN_MASK);
3659 assert((unsigned long)(newsize) >= (unsigned long)(nb));
3661 remainder_size = newsize - nb;
3668 remainder = chunk_at_offset(newp, nb);
3669 set_head_size(newp, nb );
3701 INTERNAL_SIZE_T nb; /* padded request size */
3727 checked_request2size(bytes, nb);
3737 m = (char*)(_int_malloc(av, nb + alignment + MINSIZE));
3778 assert (newsize >= nb &&
3785 if ((unsigned long)(size) > (unsigned long)(nb + MINSIZE)) {
3786 remainder_size = size - nb;
3787 remainder = chunk_at_offset(p, nb);
3789 set_head_size(p, nb);