Skip to content

Commit

Permalink
small fixes. RPQ was throwing exception during the new rapidfire benc…
Browse files Browse the repository at this point in the history
…hmark. Fix that and fix some output formatting
  • Loading branch information
Whiteknight committed Feb 7, 2010
1 parent 6f75ad9 commit d41b330
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions benchmarks/benchmarker.pir
Expand Up @@ -137,7 +137,7 @@
$N1 = time
$N2 = $N1 - $N0

print_partial_result(targettype, "push/pop rapidfire", numtrials, $N2)
print_partial_result(targettype, "push/shift rapidfire", numtrials, $N2)
.end


Expand All @@ -149,7 +149,7 @@


$I0 = length operation
$I1 = 20 - $I0
$I1 = 25 - $I0
$S0 = repeat " ", $I1
print "("
print targettype
Expand Down
3 changes: 2 additions & 1 deletion src/pmc/resizablepmcqueue.pmc
Expand Up @@ -68,8 +68,9 @@ pmclass ResizablePMCQueue dynpmc auto_attrs provides queue {
RPQ_ATTRS_CONST(attrs) = RPQ_GET_ATTRS(SELF);
rpq_node * const node = rpq_alloc_new_node(value);
rpq_node * const top = RPQ_GET_TOP(attrs);
rpq_node * const root = RPQ_GET_ROOT(attrs);
/* If we don't have a top, it's because the queue is empty. */
if (!top) {
if (!root) {
attrs->root = node;
attrs->top = node;
} else {
Expand Down

0 comments on commit d41b330

Please sign in to comment.