Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuaNerin committed Jan 1, 2024
1 parent b29ba15 commit ed95a82
Show file tree
Hide file tree
Showing 20 changed files with 7,953 additions and 61 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,32 @@ on:
branches: [ avo ]

jobs:
build:
test_amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.14'

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...

test_arm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Set up Go
uses: actions/setup-go@v4
with:
Expand Down
19 changes: 19 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"terminal.integrated.env.osx": {
"PATH" : "/opt/homebrew/opt/binutils/bin/:/opt/homebrew/opt/llvm/bin:${env:PATH}",
"LDFLAGS" : "-L/opt/homebrew/opt/llvm/lib",
"CPPFLAGS": "-I/opt/homebrew/opt/llvm/include",
},
"terminal.integrated.env.linux": {
"PATH" : "/opt/homebrew/opt/binutils/bin/:/opt/homebrew/opt/llvm/bin:${env:PATH}",
"LDFLAGS" : "-L/opt/homebrew/opt/llvm/lib",
"CPPFLAGS": "-I/opt/homebrew/opt/llvm/include",
},
"files.associations": {
"*.py": "python",
"*.js": "javascript",
"*.rmd": "markdown",
"__config": "c",
"emmintrin.h": "c"
},
}
6 changes: 5 additions & 1 deletion lea/amd64_c2goasm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CFLAGS_SSSE3=${CFLAGS_SSE2} -mssse3
CFLAGS_AVX2=${CFLAGS_SSSE3} -mavx -mavx2


all: sse2 avx2
all: sse2 avx2 init

sse2:
${CC} ${CFLAGS} ${CFLAGS_ARCH} ${CFLAGS_SSE2} -S src/lea_sse2.c -o src/lea_sse2.s
Expand All @@ -22,3 +22,7 @@ sse2:
avx2:
${CC} ${CFLAGS} ${CFLAGS_ARCH} ${CFLAGS_AVX2} -S src/lea_avx2.c -o src/lea_avx2.s
${C2GOASM} -a -f src/lea_avx2.s lea_amd64_avx2.s

init:
${CC} ${CFLAGS} ${CFLAGS_ARCH} ${CFLAGS_SSE2} -S src/lea_init.c -o src/lea_init.s
${C2GOASM} -a -f src/lea_init.s lea_init.s
14 changes: 14 additions & 0 deletions lea/amd64_c2goasm/lea_init.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//go:build amd64 && gc && !purego

package lea

import "unsafe"

//go:noescape
func __lea_set_key_generic(rk, round, mk unsafe.Pointer, mk_len uint64)

Check failure on line 8 in lea/amd64_c2goasm/lea_init.go

View workflow job for this annotation

GitHub Actions / test_arm64

missing function body

Check failure on line 8 in lea/amd64_c2goasm/lea_init.go

View workflow job for this annotation

GitHub Actions / test_amd64

missing function body

//go:noescape
func __lea_encrypt(ct, pt, rk unsafe.Pointer, round uint64)

Check failure on line 11 in lea/amd64_c2goasm/lea_init.go

View workflow job for this annotation

GitHub Actions / test_arm64

missing function body

Check failure on line 11 in lea/amd64_c2goasm/lea_init.go

View workflow job for this annotation

GitHub Actions / test_amd64

missing function body

//go:noescape
func __lea_decrypt(pt, ct, rk unsafe.Pointer, round uint64)

Check failure on line 14 in lea/amd64_c2goasm/lea_init.go

View workflow job for this annotation

GitHub Actions / test_arm64

missing function body

Check failure on line 14 in lea/amd64_c2goasm/lea_init.go

View workflow job for this annotation

GitHub Actions / test_amd64

missing function body
Loading

0 comments on commit ed95a82

Please sign in to comment.