Skip to content

Commit edf661f

Browse files
committed
Move around some files to use nexprs macro here
1 parent 8190fe8 commit edf661f

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
@@ -38,7 +38,6 @@ include("subarray.jl")
3838
include("views.jl")
3939

4040
# numeric operations
41-
include("hashing.jl")
4241
include("div.jl")
4342
include("twiceprecision.jl")
4443
include("complex.jl")
@@ -89,6 +88,9 @@ include("strings/string.jl")
8988
include("strings/substring.jl")
9089
include("strings/cstring.jl")
9190

91+
include("cartesian.jl")
92+
using .Cartesian
93+
include("hashing.jl")
9294
include("osutils.jl")
9395

9496
# Core I/O
@@ -115,8 +117,6 @@ include("arrayshow.jl")
115117
include("methodshow.jl")
116118

117119
# multidimensional arrays
118-
include("cartesian.jl")
119-
using .Cartesian
120120
include("multidimensional.jl")
121121

122122
include("broadcast.jl")

base/cartesian.jl

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

396396
## Resolve expressions at parsing time ##
397397

398-
const exprresolve_arith_dict = Dict{Symbol,Function}(:+ => +,
398+
const exprresolve_arith_dict = IdDict{Symbol,Function}(:+ => +,
399399
:- => -, :* => *, :/ => /, :^ => ^, :div => div)
400-
const exprresolve_cond_dict = Dict{Symbol,Function}(:(==) => ==,
400+
const exprresolve_cond_dict = IdDict{Symbol,Function}(:(==) => ==,
401401
:(<) => <, :(>) => >, :(<=) => <=, :(>=) => >=)
402402

403403
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)