mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 07:13:14 +00:00
Add pclmulqdq.odin
This commit is contained in:
13
core/simd/x86/pclmulqdq.odin
Normal file
13
core/simd/x86/pclmulqdq.odin
Normal file
@@ -0,0 +1,13 @@
|
||||
//+build i386, amd64
|
||||
package simd_x86
|
||||
|
||||
_mm_clmulepi64_si128 :: #force_inline proc "c" (a, b: __m128i, $IMM8: u8) -> __m128i {
|
||||
return pclmulqdq(a, b, u8(IMM8))
|
||||
}
|
||||
|
||||
@(default_calling_convention="c")
|
||||
@(private)
|
||||
foreign _ {
|
||||
@(link_name="llvm.x86.pclmulqdq")
|
||||
pclmulqdq :: proc(a, round_key: __m128i, #const imm8: u8) -> __m128i ---
|
||||
}
|
||||
Reference in New Issue
Block a user