mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-27 22:25:09 +00:00
remove force_inline from vector_dot
This commit is contained in:
@@ -45,7 +45,7 @@ scalar_dot :: proc "contextless" (a, b: $T) -> T where IS_FLOAT(T), !IS_ARRAY(T)
|
||||
}
|
||||
|
||||
@(require_results)
|
||||
vector_dot :: #force_inline proc "contextless" (a, b: $T/[$N]$E) -> (c: E) where IS_NUMERIC(E) #no_bounds_check {
|
||||
vector_dot :: proc "contextless" (a, b: $T/[$N]$E) -> (c: E) where IS_NUMERIC(E) #no_bounds_check {
|
||||
ab := a * b
|
||||
when N == 1 {
|
||||
return ab.x
|
||||
|
||||
Reference in New Issue
Block a user