mering
This commit is contained in:
commit
c92b4e7d49
2 changed files with 3 additions and 4 deletions
|
|
@ -302,8 +302,7 @@ the pike. The success or failure of the search can then be determined
|
||||||
outside the loop, if necessary, by checking for the tail node's special
|
outside the loop, if necessary, by checking for the tail node's special
|
||||||
pointer—but the inside of the loop is streamlined to just one test, as
|
pointer—but the inside of the loop is streamlined to just one test, as
|
||||||
shown in Listing 15.5. Not all linked lists lend themselves to
|
shown in Listing 15.5. Not all linked lists lend themselves to
|
||||||
sentinels, but the performance benefits are considerable for those lend
|
sentinels, but the performance benefits are considerable
|
||||||
themselves to sentinels, but the performance benefits are considerable
|
|
||||||
for those that do.
|
for those that do.
|
||||||
|
|
||||||

|

|
||||||
|
|
|
||||||
|
|
@ -236,8 +236,8 @@ contention. Happily, write-after-read operations do *not* cause
|
||||||
contention. Such operations, as in
|
contention. Such operations, as in
|
||||||
|
|
||||||
```nasm
|
```nasm
|
||||||
mov eax,edx ;U-pipe cycle 1
|
mov eax,edx ;U-pipe cycle 1
|
||||||
sub edx,edxX ;V-pipe cycle 1
|
sub edx,edx ;V-pipe cycle 1
|
||||||
```
|
```
|
||||||
|
|
||||||
are free of charge.
|
are free of charge.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue