Ferran Balaguer | 7388217 | 2019-09-02 16:39:42 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Francis Murtagh | 3a16198 | 2019-09-04 15:25:02 +0100 | [diff] [blame^] | 8 | #include <armnn/Exceptions.hpp> |
| 9 | |
Ferran Balaguer | 7388217 | 2019-09-02 16:39:42 +0100 | [diff] [blame] | 10 | #include <stdint.h> |
| 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | namespace profiling |
| 16 | { |
| 17 | |
Francis Murtagh | 3a16198 | 2019-09-04 15:25:02 +0100 | [diff] [blame^] | 18 | void WriteUint64(unsigned char* buffer, unsigned int offset, uint64_t value); |
| 19 | |
Ferran Balaguer | 7388217 | 2019-09-02 16:39:42 +0100 | [diff] [blame] | 20 | void WriteUint32(unsigned char* buffer, unsigned int offset, uint32_t value); |
| 21 | |
| 22 | void WriteUint16(unsigned char* buffer, unsigned int offset, uint16_t value); |
| 23 | |
Francis Murtagh | 3a16198 | 2019-09-04 15:25:02 +0100 | [diff] [blame^] | 24 | uint64_t ReadUint64(const unsigned char* buffer, unsigned int offset); |
| 25 | |
Ferran Balaguer | 7388217 | 2019-09-02 16:39:42 +0100 | [diff] [blame] | 26 | uint32_t ReadUint32(const unsigned char* buffer, unsigned int offset); |
| 27 | |
| 28 | uint16_t ReadUint16(const unsigned char* buffer, unsigned int offset); |
| 29 | |
Francis Murtagh | 3a16198 | 2019-09-04 15:25:02 +0100 | [diff] [blame^] | 30 | class BufferExhaustion : public armnn::Exception |
| 31 | { |
| 32 | using Exception::Exception; |
| 33 | }; |
| 34 | |
Ferran Balaguer | 7388217 | 2019-09-02 16:39:42 +0100 | [diff] [blame] | 35 | } // namespace profiling |
| 36 | |
| 37 | } // namespace armnn |