Changeset c8891c8 in mainline for uspace/lib/c/generic/adt/dyn_array.c


Ignore:
Timestamp:
2019-08-03T08:26:04Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
d7c5fc0
Parents:
62d3d87
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-04-22 17:50:20)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-03 08:26:04)
Message:

dyn_array: Remove runtime pointer arithmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/adt/dyn_array.c

    r62d3d87 rc8891c8  
    9191}
    9292
    93 void *_dyn_array_get(dyn_array_t *da, size_t index)
    94 {
    95         assert(index < da->size);
    96         return da->_data + (index * da->_item_size);
    97 }
    98 
    9993/** Grows/shrinks array so that it effeciently stores desired capacity
    10094 *
Note: See TracChangeset for help on using the changeset viewer.