| 72 | } |
| 73 | |
| 74 | void CheckForNoAliasing(double* existing_block, |
| 75 | int existing_block_size, |
| 76 | double* new_block, |
| 77 | int new_block_size) { |
| 78 | CHECK(!RegionsAlias( |
| 79 | existing_block, existing_block_size, new_block, new_block_size)) |
| 80 | << "Aliasing detected between existing parameter block at memory " |
| 81 | << "location " << existing_block << " and has size " |
| 82 | << existing_block_size << " with new parameter " |
| 83 | << "block that has memory address " << new_block << " and would have " |
| 84 | << "size " << new_block_size << "."; |
| 85 | } |
| 86 | |
| 87 | template <typename KeyType> |
| 88 | void DecrementValueOrDeleteKey(const KeyType key, |
no test coverage detected