Skip to content

Commit

Permalink
Replace checksums with Base.donotdelete (#72)
Browse files Browse the repository at this point in the history
* Replace checksums with `Base.donotdelete`

* donotdelete was added only in 1.8
  • Loading branch information
SamuelBadr authored Mar 7, 2024
1 parent 8aa701f commit aee445f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/benchmarking.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Validation
default_map(x) = x
default_map(x::BigInt) = hash(x)
default_map(x::Bool) = x+520705676
@static if v"1.8" <= VERSION
const default_map = Base.donotdelete
else
default_map(x) = x
default_map(x::BigInt) = hash(x)
default_map(x::Bool) = x+520705676
end

default_reduction(x,y) = y
default_reduction(x::T,y::T) where T <: Real = x*y

Expand Down

0 comments on commit aee445f

Please sign in to comment.