Skip to content

Commit

Permalink
update perf tests for removed deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jul 26, 2014
1 parent 697ad01 commit 3c129b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/perf/kernel/go_benchmark.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Benchmark implementing the board logic for the game of go and
# exercising it by playing random games. Derived from
# http://www.lysator.liu.se/~gunnar/gtp/brown-1.0.tar.gz
import Base.ref
import Base.getindex

const EMPTY = 0
const WHITE = 1
Expand Down Expand Up @@ -79,8 +79,8 @@ function init(board::Board, n::Int, seed::Uint32)
board
end

ref(board::Board, pos::Int) = board.board[pos]
ref(board::Board, i::Int, j::Int) = board.board[i, j]
getindex(board::Board, pos::Int) = board.board[pos]
getindex(board::Board, i::Int, j::Int) = board.board[i, j]

# Functions to convert between 1D and 2D coordinates. The 2D coordinate
# (i, j) points to row i and column j, starting with (1,1) in the
Expand Down

0 comments on commit 3c129b7

Please sign in to comment.