@@ -166,11 +166,11 @@ end
166
166
# end
167
167
if Sys. ARCH === :x86_64
168
168
@inline function choose_num_threads (C:: T , NT:: UInt , x:: Base.BitInteger ) where {T<: Union{Float32,Float64} }
169
- _choose_num_threads (Base. mul_float_fast (T (C), T (0.05460264079015985 )), NT, x)
169
+ _choose_num_threads (Base. mul_float_fast (T (C), T (0.0225 )), NT, x)
170
170
end
171
171
else
172
172
@inline function choose_num_threads (C:: T , NT:: UInt , x:: Base.BitInteger ) where {T<: Union{Float32,Float64} }
173
- _choose_num_threads (Base. mul_float_fast (C, T (0.05460264079015985 ) * T (0.25 )), NT, x)
173
+ _choose_num_threads (Base. mul_float_fast (C, T (0.0225 ) * T (0.25 )), NT, x)
174
174
end
175
175
end
176
176
@inline function _choose_num_threads (C:: T , NT:: UInt , x:: Base.BitInteger ) where {T<: Union{Float32,Float64} }
@@ -339,7 +339,7 @@ function thread_one_loops_expr(
339
339
UNROLL:: Tuple{Bool,Int8,Int8,Bool,Int,Int,Int,Int,Int,Int,Int,UInt} , OPS:: Expr , ARF:: Expr , AM:: Expr , LPSYM:: Expr
340
340
)
341
341
looplen = looplengthprod (ls)
342
- c = 0.05460264079015985 * c / looplen
342
+ c = 0.0225 * c / looplen
343
343
if Sys. ARCH != = :x86_64
344
344
c *= 0.25
345
345
end
@@ -475,8 +475,7 @@ function thread_two_loops_expr(
475
475
UNROLL:: Tuple{Bool,Int8,Int8,Bool,Int,Int,Int,Int,Int,Int,Int,UInt} , OPS:: Expr , ARF:: Expr , AM:: Expr , LPSYM:: Expr
476
476
)
477
477
looplen = looplengthprod (ls)
478
- c = 0.05460264079015985 * c / looplen
479
- # @show c
478
+ c = 0.0225 * c / looplen
480
479
if Sys. ARCH != = :x86_64
481
480
c *= 0.25
482
481
end
0 commit comments