mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
@(require_target_feature=<string>) @(enable_target_feature=<string>)
require_target_feature - required by the target micro-architecture enable_target_feature - will be enabled for the specified procedure only
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
//+build i386, amd64
|
||||
package simd_x86
|
||||
|
||||
@(enable_target_feature="fxsr")
|
||||
_fxsave :: #force_inline proc "c" (mem_addr: rawptr) {
|
||||
fxsave(mem_addr)
|
||||
}
|
||||
@(enable_target_feature="fxsr")
|
||||
_fxrstor :: #force_inline proc "c" (mem_addr: rawptr) {
|
||||
fxrstor(mem_addr)
|
||||
}
|
||||
|
||||
when ODIN_ARCH == .amd64 {
|
||||
@(enable_target_feature="fxsr")
|
||||
_fxsave64 :: #force_inline proc "c" (mem_addr: rawptr) {
|
||||
fxsave64(mem_addr)
|
||||
}
|
||||
@(enable_target_feature="fxsr")
|
||||
_fxrstor64 :: #force_inline proc "c" (mem_addr: rawptr) {
|
||||
fxrstor64(mem_addr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user