Skip to content

Commit 16a70a1

Browse files
committed
Move around some files to use nexprs macro here
1 parent 1145888 commit 16a70a1

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

base/Base.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ include("subarray.jl")
3535
include("views.jl")
3636

3737
# numeric operations
38-
include("hashing.jl")
3938
include("div.jl")
4039
include("twiceprecision.jl")
4140
include("complex.jl")
@@ -86,6 +85,9 @@ include("strings/string.jl")
8685
include("strings/substring.jl")
8786
include("strings/cstring.jl")
8887

88+
include("cartesian.jl")
89+
using .Cartesian
90+
include("hashing.jl")
8991
include("osutils.jl")
9092

9193
# Core I/O
@@ -112,8 +114,6 @@ include("arrayshow.jl")
112114
include("methodshow.jl")
113115

114116
# multidimensional arrays
115-
include("cartesian.jl")
116-
using .Cartesian
117117
include("multidimensional.jl")
118118

119119
include("broadcast.jl")

base/cartesian.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,9 @@ end
375375

376376
## Resolve expressions at parsing time ##
377377

378-
const exprresolve_arith_dict = Dict{Symbol,Function}(:+ => +,
378+
const exprresolve_arith_dict = IdDict{Symbol,Function}(:+ => +,
379379
:- => -, :* => *, :/ => /, :^ => ^, :div => div)
380-
const exprresolve_cond_dict = Dict{Symbol,Function}(:(==) => ==,
380+
const exprresolve_cond_dict = IdDict{Symbol,Function}(:(==) => ==,
381381
:(<) => <, :(>) => >, :(<=) => <=, :(>=) => >=)
382382

383383
function exprresolve_arith(ex::Expr)

base/complex.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,8 @@ isequal(z::Real, w::Complex) = isequal(z,real(w))::Bool & isequal(zero(z),imag(w
248248

249249
in(x::Complex, r::AbstractRange{<:Real}) = isreal(x) && real(x) in r
250250

251-
if UInt === UInt64
252-
const h_imag = 0x32a7a07f3e7cd1f9
253-
else
254-
const h_imag = 0x3e7cd1f9
255-
end
256-
const hash_0_imag = hash(0, h_imag)
251+
const h_imag = 0x32a7a07f3e7cd1f % UInt
252+
const hash_0_imag = 0x153e9f914f9b5b92 % UInt
257253

258254
function hash(z::Complex, h::UInt)
259255
# TODO: with default argument specialization, this would be better:

0 commit comments

Comments
 (0)