* This function just discards its argument. It's used to make it * appear that data is used, so that the compiler won't optimize * away the code we're trying to measure. * * \param value * Pointer to arbitrary value; it's discarded. */
| 77 | * Pointer to arbitrary value; it's discarded. |
| 78 | */ |
| 79 | void discard(void* value) { |
| 80 | int x = *reinterpret_cast<int*>(value); |
| 81 | if (x == 0x43924776) { |
| 82 | printf("Value was 0x%x\n", x); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | static uint64_t cntr = 0; |
| 87 |
no outgoing calls
no test coverage detected