Skip to content

Commit

Permalink
fix build usage
Browse files Browse the repository at this point in the history
  • Loading branch information
skallweitNV committed Nov 19, 2024
1 parent b9b30a0 commit 5b8ae13
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/sgl/core/struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,8 @@ struct X86Program : public Program {
c.comment(text.c_str());
};

auto node = c.addFunc(asmjit::FuncSignature::build<void(const void*, void*, size_t)>(asmjit::CallConvId::kHost));
auto node
= c.addFunc(asmjit::FuncSignature::build<void, const void*, void*, size_t>(asmjit::CallConvId::kHost));
auto src = c.newIntPtr("src");
auto dst = c.newIntPtr("dst");
auto count = c.newInt64("count");
Expand Down Expand Up @@ -1113,7 +1114,7 @@ struct X86Program : public Program {
c.invoke(
&node,
imm((void*)math::float16_to_float32),
FuncSignature::build<float(uint16_t)>(CallConvId::kHost)
FuncSignature::build<float, uint16_t>(CallConvId::kHost)
);
node->setArg(0, tmp);
node->setRet(0, reg.xmm);
Expand Down Expand Up @@ -1198,7 +1199,7 @@ struct X86Program : public Program {
c.invoke(
&node,
imm((void*)math::float32_to_float16),
FuncSignature::build<uint16_t(float)>(CallConvId::kHost)
FuncSignature::build<uint16_t, float>(CallConvId::kHost)
);
node->setArg(0, reg.xmm);
node->setRet(0, tmp2);
Expand Down Expand Up @@ -1506,7 +1507,8 @@ struct ARMProgram : public Program {
c.comment(text.c_str());
};

auto node = c.addFunc(asmjit::FuncSignature::build<void(const void*, void*, size_t)>(asmjit::CallConvId::kHost));
auto node
= c.addFunc(asmjit::FuncSignature::build<void, const void*, void*, size_t>(asmjit::CallConvId::kHost));
auto src = c.newIntPtr("src");
auto dst = c.newIntPtr("dst");
auto count = c.newInt64("count");
Expand Down

0 comments on commit 5b8ae13

Please sign in to comment.