MCPcopy Create free account
hub / github.com/GJDuck/e9patch / pushBounds

Function pushBounds

src/e9patch/e9mapping.cpp:713–722  ·  view source on GitHub ↗

* Get the virtual bounds of a mapping. */

Source from the content-addressed store, hash-verified

711 * Get the virtual bounds of a mapping.
712 */
713static void pushBounds(intptr_t lb, intptr_t ub, size_t granularity,
714 std::vector<Bounds> &bounds)
715{
716 if (lb == INTPTR_MAX || ub == INTPTR_MIN)
717 return;
718 lb = lb - lb % granularity;
719 if (ub % granularity != 0)
720 ub = (ub + granularity) - (ub % granularity);
721 bounds.push_back({lb, ub});
722}
723void getVirtualBounds(const Mapping *mapping, size_t granularity,
724 std::vector<Bounds> &bounds)
725{

Callers 1

getVirtualBoundsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected