* Get the virtual bounds of a mapping. */
| 711 | * Get the virtual bounds of a mapping. |
| 712 | */ |
| 713 | static 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 | } |
| 723 | void getVirtualBounds(const Mapping *mapping, size_t granularity, |
| 724 | std::vector<Bounds> &bounds) |
| 725 | { |