{"id":13764063,"url":"https://github.com/mengzhuo/intrinsic","last_synced_at":"2025-05-10T17:31:35.366Z","repository":{"id":57497032,"uuid":"94195174","full_name":"mengzhuo/intrinsic","owner":"mengzhuo","description":"Provide Golang native SIMD intrinsics on x86/amd64 platform","archived":true,"fork":false,"pushed_at":"2017-06-23T01:17:03.000Z","size":83,"stargazers_count":47,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-06T22:45:12.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mengzhuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-13T09:26:34.000Z","updated_at":"2024-08-09T06:27:30.000Z","dependencies_parsed_at":"2022-09-03T23:20:43.811Z","dependency_job_id":null,"html_url":"https://github.com/mengzhuo/intrinsic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengzhuo%2Fintrinsic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengzhuo%2Fintrinsic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengzhuo%2Fintrinsic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengzhuo%2Fintrinsic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mengzhuo","download_url":"https://codeload.github.com/mengzhuo/intrinsic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253453331,"owners_count":21911079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T15:01:11.594Z","updated_at":"2025-05-10T17:31:35.094Z","avatar_url":"https://github.com/mengzhuo.png","language":"Go","funding_links":[],"categories":["Utilities","工具库`可以提升效率的通用代码库和工具`","公用事业公司","Utility","实用工具","實用工具","工具库"],"sub_categories":["Utility/Miscellaneous","HTTP Clients","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","查询语","实用程序/Miscellaneous","Advanced Console UIs","高级控制台界面","高級控制台界面","Fail injection","交流"],"readme":"\n# intrinsic\n\n[![Build Status](https://travis-ci.org/mengzhuo/intrinsic.svg?branch=master)](https://travis-ci.org/mengzhuo/intrinsic)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mengzhuo/intrinsic)](https://goreportcard.com/report/github.com/mengzhuo/intrinsic)\n\nProvide Golang native SIMD intrinsics on x86/amd64 platform\n\n* SSE2 [![godoc reference](https://godoc.org/github.com/mengzhuo/intrinsic/sse2?status.png)](https://godoc.org/github.com/mengzhuo/intrinsic/sse2)\n* SSE3 [![godoc reference](https://godoc.org/github.com/mengzhuo/intrinsic/sse3?status.png)](https://godoc.org/github.com/mengzhuo/intrinsic/sse3)\n* SSSE3 [![godoc reference](https://godoc.org/github.com/mengzhuo/intrinsic/ssse3?status.png)](https://godoc.org/github.com/mengzhuo/intrinsic/ssse3)\n* SSE41 [![godoc reference](https://godoc.org/github.com/mengzhuo/intrinsic/sse41?status.png)](https://godoc.org/github.com/mengzhuo/intrinsic/sse41)\n* SSE42 [![godoc reference](https://godoc.org/github.com/mengzhuo/intrinsic/sse42?status.png)](https://godoc.org/github.com/mengzhuo/intrinsic/sse42)\n\n## Usage\n\n```golang\n\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/mengzhuo/intrinsic/sse2\"\n)\n\nfunc main() {\n    src := []float32{3.14, 2.17}\n    dst := []float32{2.17, 3.15}\n    sse2.MAXSDm64float32(src, dst)\n    fmt.Print(src, dst) //[2.17 3.15] [2.17 3.15]\n}\n\n```\n\n## Benchmarks\n\nSSE2\nit will provide about 6x-7x performance enhancement.\n\n```\nBenchmarkPMINUBByte-4         \t1000000000\t         2.65 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkGeneralPMINUBByte-4   \t100000000\t        15.8 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkPAND-4               \t1000000000\t         2.61 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkGeneralAND-4         \t100000000\t        15.4 ns/op\t       0 B/op\t       0 allocs/op\n```\n\n## Development\n\nAll codes in subdir is generated by scanner.go , see Makefile for more detail.\n\nx86.csv and x86desc.csv are from another repos in https://github.com/mengzhuo/x86data\n\n\n## TODO\n\n- [ ] resolve immediate opcode generate\n- [ ] SSE2  gen=80, total=141, ratio=56.74%\n- [ ] SSE3  gen=6, total=10, ratio=60.00%\n- [ ] SSSE3 gen=15, total=32, ratio=46.88%\n- [ ] SSE4\\_1  gen=26, total=49, ratio=53.06%\n- [ ] SSE4\\_2  gen=1, total=5, ratio=20.00%\n- [ ] AVX  gen=66, total=378, ratio=17.46%\n- [ ] AVX2 gen=8, total=159, ratio=5.03%\n- [ ] FMA\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengzhuo%2Fintrinsic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmengzhuo%2Fintrinsic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengzhuo%2Fintrinsic/lists"}