| 289 | constexpr size_t kDefaultByteAlignmentForNNAPI = 16; |
| 290 | |
| 291 | static size_t getNumPaddingBytes(size_t byte_size) { |
| 292 | size_t num_padding_bytes = 0; |
| 293 | if (byte_size % kDefaultByteAlignmentForNNAPI) { |
| 294 | num_padding_bytes = kDefaultByteAlignmentForNNAPI - |
| 295 | (byte_size % kDefaultByteAlignmentForNNAPI); |
| 296 | } |
| 297 | return num_padding_bytes; |
| 298 | } |
| 299 | |
| 300 | std::string SimpleJoin(const std::vector<const char*>& elements, |
| 301 | const char* separator) { |
no outgoing calls
no test coverage detected