Re: [go-nuts] syscall.NewCallback, floats and Windows

2021-04-05 Thread Marco Ronchese
Just dropping here for reference the link to the Github issue: https://github.com/golang/go/issues/45300 On Sunday, 28 March 2021 at 03:55:03 UTC+2 RP Junior wrote: > > May want to check out this setting on your issue: > "cmd/internal/obj: reject splittable ABIInternal functions without > more

Re: [go-nuts] syscall.NewCallback, floats and Windows

2021-03-27 Thread RP Junior
May want to check out this setting on your issue: "cmd/internal/obj: reject splittable ABIInternal functions without morestack spill info (e.g., asm functions) because we can't generate a correct morestack path " Unless of course you don't want to use asm functions On Thursday, March 25, 2021 a

Re: [go-nuts] syscall.NewCallback, floats and Windows

2021-03-25 Thread Marco Ronchese
Thanks for the explanation. I did some reading and I see there is some work going to switch to register-based calling convention (https://github.com/golang/go/issues/40724). This could be a good occasion to try to fix this. In that issue is discussed which kind of SysCallbacks are needed, I wil

Re: [go-nuts] syscall.NewCallback, floats and Windows

2021-03-25 Thread Ian Lance Taylor
On Thu, Mar 25, 2021 at 11:38 AM Marco Ronchese wrote: > > I am calling certain Windows API from Go code (without CGO), everything works > flawlessly, but now I bumped into this issue. > > I want to register a callback that accepts (also) a float as argument > (https://docs.microsoft.com/en-us/w

[go-nuts] syscall.NewCallback, floats and Windows

2021-03-25 Thread Marco Ronchese
Hello, I am calling certain Windows API from Go code (without CGO), everything works flawlessly, but now I bumped into this issue. I want to register a callback that accepts (also) a float as argument ( https://docs.microsoft.com/en-us/windows/win32/api/audiopolicy/nf-audiopolicy-iaudiosessione