From 5b8ae13a2aacf290c336a4aa516abe5e05dda3fb Mon Sep 17 00:00:00 2001 From: Simon Kallweit Date: Tue, 19 Nov 2024 19:39:41 +0100 Subject: [PATCH] fix build usage --- src/sgl/core/struct.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/sgl/core/struct.cpp b/src/sgl/core/struct.cpp index ee82ce16..e7c32d81 100644 --- a/src/sgl/core/struct.cpp +++ b/src/sgl/core/struct.cpp @@ -920,7 +920,8 @@ struct X86Program : public Program { c.comment(text.c_str()); }; - auto node = c.addFunc(asmjit::FuncSignature::build(asmjit::CallConvId::kHost)); + auto node + = c.addFunc(asmjit::FuncSignature::build(asmjit::CallConvId::kHost)); auto src = c.newIntPtr("src"); auto dst = c.newIntPtr("dst"); auto count = c.newInt64("count"); @@ -1113,7 +1114,7 @@ struct X86Program : public Program { c.invoke( &node, imm((void*)math::float16_to_float32), - FuncSignature::build(CallConvId::kHost) + FuncSignature::build(CallConvId::kHost) ); node->setArg(0, tmp); node->setRet(0, reg.xmm); @@ -1198,7 +1199,7 @@ struct X86Program : public Program { c.invoke( &node, imm((void*)math::float32_to_float16), - FuncSignature::build(CallConvId::kHost) + FuncSignature::build(CallConvId::kHost) ); node->setArg(0, reg.xmm); node->setRet(0, tmp2); @@ -1506,7 +1507,8 @@ struct ARMProgram : public Program { c.comment(text.c_str()); }; - auto node = c.addFunc(asmjit::FuncSignature::build(asmjit::CallConvId::kHost)); + auto node + = c.addFunc(asmjit::FuncSignature::build(asmjit::CallConvId::kHost)); auto src = c.newIntPtr("src"); auto dst = c.newIntPtr("dst"); auto count = c.newInt64("count");