Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-orbit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Katerina Roukounaki
cloud-orbit
Commits
7501394e
Commit
7501394e
authored
Jan 09, 2015
by
Aggelos Giantsios
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enforce the evaluation of dereferencing (by nickie)
parent
e7e43b86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Table.hs
Table.hs
+2
-1
No files found.
Table.hs
View file @
7501394e
{-# LANGUAGE BangPatterns #-}
--
--
-- orbit-int hash table (storing vertices on a worker)
-- orbit-int hash table (storing vertices on a worker)
--
--
...
@@ -50,7 +51,7 @@ is_member x i t = elem x (t ! i)
...
@@ -50,7 +51,7 @@ is_member x i t = elem x (t ! i)
-- insert(X, I, T) inserts X into table T at slot I.
-- insert(X, I, T) inserts X into table T at slot I.
insert
::
Vertex
->
Int
->
VTable
->
VTable
insert
::
Vertex
->
Int
->
VTable
->
VTable
insert
x
i
t
=
t
//
[(
i
,
x
:
t
!
i
)]
insert
!
x
i
t
=
t
!
i
`
seq
`
t
//
[(
i
,
x
:
t
!
i
)]
-- get_freq computes the fill frequency of table T;
-- get_freq computes the fill frequency of table T;
-- the output is a list of integers where the number at position I
-- the output is a list of integers where the number at position I
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment