Skip to content

Commit

Permalink
Mark global scope inline functions as static. Take arguments by value,
Browse files Browse the repository at this point in the history
and not by reference, since they are essentially a single std::uint64_t
wrapped in a struct.
  • Loading branch information
AlexVlx committed Sep 20, 2017
1 parent f7a4301 commit e695e33
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hc2/headers/functions/hsa_interfaces.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,23 @@
#include <memory>
#include <utility>

static
inline
bool operator==(const hsa_agent_t& x, const hsa_agent_t& y)
bool operator==(hsa_agent_t x, hsa_agent_t y)
{
return x.handle == y.handle;
}

static
inline
bool operator==(const hsa_isa_t& x, const hsa_isa_t& y)
bool operator==(hsa_isa_t x, hsa_isa_t y)
{
return x.handle == y.handle;
}

static
inline
bool operator==(
const hsa_executable_symbol_t& x, const hsa_executable_symbol_t& y)
bool operator==(hsa_executable_symbol_t x, hsa_executable_symbol_t y)
{
return x.handle == y.handle;
}
Expand Down

0 comments on commit e695e33

Please sign in to comment.