Home | History | Annotate | Download | only in stdlib

Lines Matching defs:fm

4213     mstate fm = get_mstate_for(p);
4214 if (!ok_magic(fm)) {
4215 USAGE_ERROR_ACTION(fm, p);
4219 #define fm gm
4221 if (!PREACTION(fm)) {
4222 check_inuse_chunk(fm, p);
4223 if (RTCHECK(ok_address(fm, p) && ok_cinuse(p))) {
4232 fm->footprint -= psize;
4239 if (RTCHECK(ok_address(fm, prev))) { /* consolidate backward */
4240 if (p != fm->dv) {
4241 unlink_chunk(fm, p, prevsize);
4244 fm->dvsize = psize;
4256 if (next == fm->top) {
4257 size_t tsize = fm->topsize += psize;
4258 fm->top = p;
4260 if (p == fm->dv) {
4261 fm->dv = 0;
4262 fm->dvsize = 0;
4264 if (should_trim(fm, tsize))
4265 sys_trim(fm, 0);
4268 else if (next == fm->dv) {
4269 size_t dsize = fm->dvsize += psize;
4270 fm->dv = p;
4277 unlink_chunk(fm, next, nsize);
4279 if (p == fm->dv) {
4280 fm->dvsize = psize;
4287 insert_chunk(fm, p, psize);
4288 check_free_chunk(fm, p);
4293 USAGE_ERROR_ACTION(fm, p);
4295 POSTACTION(fm);
4299 #undef fm
4614 mstate fm = get_mstate_for(p);
4616 mstate fm = (mstate)msp;
4618 if (!ok_magic(fm
4619 USAGE_ERROR_ACTION(fm, p);
4622 if (!PREACTION(fm)) {
4623 check_inuse_chunk(fm, p);
4624 if (RTCHECK(ok_address(fm, p) && ok_cinuse(p))) {
4633 fm->footprint -= psize;
4640 if (RTCHECK(ok_address(fm, prev))) { /* consolidate backward */
4641 if (p != fm->dv) {
4642 unlink_chunk(fm, p, prevsize);
4645 fm->dvsize = psize;
4657 if (next == fm->top) {
4658 size_t tsize = fm->topsize += psize;
4659 fm->top = p;
4661 if (p == fm->dv) {
4662 fm->dv = 0;
4663 fm->dvsize = 0;
4665 if (should_trim(fm, tsize))
4666 sys_trim(fm, 0);
4669 else if (next == fm->dv) {
4670 size_t dsize = fm->dvsize += psize;
4671 fm->dv = p;
4678 unlink_chunk(fm, next, nsize);
4680 if (p == fm->dv) {
4681 fm->dvsize = psize;
4688 insert_chunk(fm, p, psize);
4689 check_free_chunk(fm, p);
4694 USAGE_ERROR_ACTION(fm, p);
4696 POSTACTION(fm);