Update clang-format file to clang-format v3.8.

Format HSA v1.1 core updates.

Change-Id: I540b5c0e5b3ec7522b09c2e070167812b3f17769
This commit is contained in:
Sean Keely
2016-08-23 05:30:22 -05:00
parent 0c9f96cfa4
commit 54f1311e01
17 changed files with 507 additions and 581 deletions
+9 -13
View File
@@ -43,29 +43,25 @@
#include "core/inc/cache.h"
#include "assert.h"
namespace core
{
namespace core {
hsa_status_t Cache::GetInfo(hsa_cache_info_t attribute, void* value)
{
switch(attribute)
{
hsa_status_t Cache::GetInfo(hsa_cache_info_t attribute, void* value) {
switch (attribute) {
case HSA_CACHE_INFO_NAME_LENGTH:
*(uint32_t*)value=name_.size();
*(uint32_t*)value = name_.size();
break;
case HSA_CACHE_INFO_NAME:
*(const char**)value=name_.c_str();
*(const char**)value = name_.c_str();
break;
case HSA_CACHE_INFO_LEVEL:
*(uint8_t*)value=level_;
*(uint8_t*)value = level_;
break;
case HSA_CACHE_INFO_SIZE:
*(uint32_t*)value=size_;
*(uint32_t*)value = size_;
break;
default:
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
}
return HSA_STATUS_SUCCESS;
}
return HSA_STATUS_SUCCESS;
}
}