Skip to content

Instantly share code, notes, and snippets.

@bwesterb
Created May 3, 2020 14:01
Show Gist options
  • Save bwesterb/17b42f985d2045ff6e1ebb40a3a9073f to your computer and use it in GitHub Desktop.
Save bwesterb/17b42f985d2045ff6e1ebb40a3a9073f to your computer and use it in GitHub Desktop.
package main
var data uint32 = 1234
func test(p *uint32)
func main() {
test(&data)
}
#include "textflag.h"
// func ntt(p *uint32)
TEXT ·test(SB), NOSPLIT, $0-8
MOVQ p+0(FP), CX
VPBROADCASTD (CX), Y0
RET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment