diff options
| author | gingerBill <bill@gingerbill.org> | 2022-05-29 15:11:15 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-05-29 15:11:15 +0100 |
| commit | f6dfa33697b0b5e3cb9b6b49214d8e02f26cb723 (patch) | |
| tree | 4336cbdff1daf03d343e2fc1628873b8ddb71ae9 | |
| parent | bc3bf939e0760daeba75e29a82d2c1e8811651bb (diff) | |
Use single line attributes
| -rw-r--r-- | core/simd/x86/adx.odin | 3 | ||||
| -rw-r--r-- | core/simd/x86/fxsr.odin | 3 | ||||
| -rw-r--r-- | core/simd/x86/pclmulqdq.odin | 3 | ||||
| -rw-r--r-- | core/simd/x86/rdtsc.odin | 3 | ||||
| -rw-r--r-- | core/simd/x86/sha.odin | 3 | ||||
| -rw-r--r-- | core/simd/x86/sse.odin | 3 | ||||
| -rw-r--r-- | core/simd/x86/sse2.odin | 3 | ||||
| -rw-r--r-- | core/simd/x86/sse3.odin | 3 | ||||
| -rw-r--r-- | core/simd/x86/ssse3.odin | 3 |
9 files changed, 9 insertions, 18 deletions
diff --git a/core/simd/x86/adx.odin b/core/simd/x86/adx.odin index 13acf923d..e73aa03a6 100644 --- a/core/simd/x86/adx.odin +++ b/core/simd/x86/adx.odin @@ -31,8 +31,7 @@ when ODIN_ARCH == .amd64 { } } -@(default_calling_convention="c") -@(private) +@(private, default_calling_convention="c") foreign _ { @(link_name="llvm.x86.addcarry.32") llvm_addcarry_u32 :: proc(a: u8, b: u32, c: u32) -> (u8, u32) --- diff --git a/core/simd/x86/fxsr.odin b/core/simd/x86/fxsr.odin index 24269391e..847678d29 100644 --- a/core/simd/x86/fxsr.odin +++ b/core/simd/x86/fxsr.odin @@ -17,8 +17,7 @@ when ODIN_ARCH == .amd64 { } } -@(default_calling_convention="c") -@(private) +@(private, default_calling_convention="c") foreign _ { @(link_name="llvm.x86.fxsave") fxsave :: proc(p: rawptr) --- diff --git a/core/simd/x86/pclmulqdq.odin b/core/simd/x86/pclmulqdq.odin index 94496fb04..ba4ecf35f 100644 --- a/core/simd/x86/pclmulqdq.odin +++ b/core/simd/x86/pclmulqdq.odin @@ -5,8 +5,7 @@ _mm_clmulepi64_si128 :: #force_inline proc "c" (a, b: __m128i, $IMM8: u8) -> __m return pclmulqdq(a, b, u8(IMM8)) } -@(default_calling_convention="c") -@(private) +@(private, default_calling_convention="c") foreign _ { @(link_name="llvm.x86.pclmulqdq") pclmulqdq :: proc(a, round_key: __m128i, #const imm8: u8) -> __m128i --- diff --git a/core/simd/x86/rdtsc.odin b/core/simd/x86/rdtsc.odin index 0527fc084..91dcc4ec9 100644 --- a/core/simd/x86/rdtsc.odin +++ b/core/simd/x86/rdtsc.odin @@ -9,8 +9,7 @@ __rdtscp :: #force_inline proc "c" (aux: ^u32) -> u64 { return rdtscp(aux) } -@(default_calling_convention="c") -@(private) +@(private, default_calling_convention="c") foreign _ { @(link_name="llvm.x86.rdtsc") rdtsc :: proc() -> u64 --- diff --git a/core/simd/x86/sha.odin b/core/simd/x86/sha.odin index c60293a8d..d907ce6a6 100644 --- a/core/simd/x86/sha.odin +++ b/core/simd/x86/sha.odin @@ -23,8 +23,7 @@ _mm_sha256rnds2_epu32 :: #force_inline proc "c" (a, b, k: __m128i) -> __m128i { return transmute(__m128i)sha256rnds2(transmute(i32x4)a, transmute(i32x4)b, transmute(i32x4)k) } -@(default_calling_convention="c") -@(private) +@(private, default_calling_convention="c") foreign _ { @(link_name="llvm.x86.sha1msg1") sha1msg1 :: proc(a, b: i32x4) -> i32x4 --- diff --git a/core/simd/x86/sse.odin b/core/simd/x86/sse.odin index eb1950ea3..a564f243a 100644 --- a/core/simd/x86/sse.odin +++ b/core/simd/x86/sse.odin @@ -430,8 +430,7 @@ when ODIN_ARCH == .amd64 { } -@(default_calling_convention="c") -@(private) +@(private, default_calling_convention="c") foreign _ { @(link_name="llvm.x86.sse.add.ss") addss :: proc(a, b: __m128) -> __m128 --- diff --git a/core/simd/x86/sse2.odin b/core/simd/x86/sse2.odin index 8be1815fa..cb2e61f46 100644 --- a/core/simd/x86/sse2.odin +++ b/core/simd/x86/sse2.odin @@ -817,8 +817,7 @@ when ODIN_ARCH == .amd64 { } -@(default_calling_convention="c") -@(private) +@(private, default_calling_convention="c") foreign _ { @(link_name="llvm.x86.sse2.pause") pause :: proc() --- diff --git a/core/simd/x86/sse3.odin b/core/simd/x86/sse3.odin index 6468ea268..9766a43e6 100644 --- a/core/simd/x86/sse3.odin +++ b/core/simd/x86/sse3.odin @@ -38,8 +38,7 @@ _mm_moveldup_ps :: #force_inline proc "c" (a: __m128) -> __m128 { return simd.shuffle(a, a, 0, 0, 2, 2) } -@(default_calling_convention="c") -@(private) +@(private, default_calling_convention="c") foreign _ { @(link_name = "llvm.x86.sse3.addsub.ps") addsubps :: proc(a, b: __m128) -> __m128 --- diff --git a/core/simd/x86/ssse3.odin b/core/simd/x86/ssse3.odin index 4abd4c84c..6c6f28008 100644 --- a/core/simd/x86/ssse3.odin +++ b/core/simd/x86/ssse3.odin @@ -89,8 +89,7 @@ _mm_sign_epi32 :: #force_inline proc "c" (a, b: __m128i) -> __m128i { -@(default_calling_convention="c") -@(private) +@(private, default_calling_convention="c") foreign _ { @(link_name = "llvm.x86.ssse3.pabs.b.128") pabsb128 :: proc(a: i8x16) -> u8x16 --- |