From f22614c54058c3c65f909c2ec5203d568cc1a92a Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Fri, 23 Sep 2016 17:27:54 +0100 Subject: [PATCH] @inline isless(::Nullable, ::Nullable) This enables SIMD for basic types when null_safe_op() is true. Inlining of the isequal() call on values still depends on the element type. The same change has been applied to Base on master, this allows keeping functions in sync. --- src/operators.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operators.jl b/src/operators.jl index 563a970..c6c289a 100644 --- a/src/operators.jl +++ b/src/operators.jl @@ -133,7 +133,7 @@ for op in (:+, :-, :*, :/, :%, :รท, :&, :|, :^, :<<, :>>, :(>>>), end if !method_exists(isless, (Nullable, Nullable)) - function isless{S,T}(x::Nullable{S}, y::Nullable{T}) + @inline function isless{S,T}(x::Nullable{S}, y::Nullable{T}) # NULL values are sorted last if null_safe_op(@functorize(isless), S, T) (!x.isnull & y.isnull) |