"git@developer.sourcefind.cn:orangecat/ollama.git" did not exist on "b05c9e83d91dd25ce578b42aef5947a89283231d"
Unverified Commit 1c1b3363 authored by Xiaodong Wang's avatar Xiaodong Wang Committed by GitHub
Browse files

Disambiguate bit_cast (#1749)



Adding namespace to disambiguate with std::bit_cast
Co-authored-by: default avatarPo Yen Chen <PoYen.Chen@amd.com>
parent f6c4d614
......@@ -30,7 +30,7 @@ struct meta_data_buffer
{
constexpr index_t size = sizeof(T);
auto tmp = bit_cast<array<std::byte, size>>(data);
auto tmp = ck_tile::bit_cast<array<std::byte, size>>(data);
for(int i = 0; i < size; i++)
{
......@@ -66,7 +66,7 @@ struct meta_data_buffer
pos++;
}
data = bit_cast<T>(tmp);
data = ck_tile::bit_cast<T>(tmp);
}
return data;
......@@ -86,7 +86,7 @@ struct meta_data_buffer
pos++;
}
auto data = bit_cast<T>(tmp);
auto data = ck_tile::bit_cast<T>(tmp);
return data;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment