Skip to content

Commit e9ce6f8

Browse files
authored
Merge pull request #269 from iorizu/typos-2017
Changes for 2017 Posts
2 parents 6df518a + 78b40f5 commit e9ce6f8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

content/posts/2017-03-18-min-of-three-part-2.dj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ data. The speedup from 435 milliseconds stated in the previous post is
6363
due to Moore's law: I've upgraded the CPU :)
6464

6565
We can bring run time down by tweaking how we calculate the minimum of
66-
three elements.
66+
three elements:
6767

6868
```rust
6969
fn min2(x: f64, y: f64) -> f64 {
@@ -84,7 +84,7 @@ minimum of two elements in the previous row can be calculated without
8484
waiting for the preceding element in the current row to be computed.
8585

8686
The assembly for the main loop looks like this (AT&T syntax,
87-
destination register on the right)
87+
destination register on the right):
8888

8989
```
9090
18.32 vmovsd -0x8(%rax,%rsi,8),%xmm1
@@ -149,10 +149,10 @@ For our grand plan, we need to fit a rhombus peg in a square hole:
149149
. . . . V
150150
```
151151

152-
* `id` is the index of the diagonal. There are twice as much diagonals
152+
* `id` is the index of the diagonal. There are twice as many diagonals
153153
as rows.
154154
* The outer loop is over `id`.
155-
* On each iteration we remember three columns (`d1`, `d2` `d3` in the
155+
* On each iteration we remember three columns (`d1`, `d2`, `d3` in the
156156
code).
157157
* There is a phase transition once we've crossed the main diagonal.
158158
* We can derive `iy` from the fact that `ix + iy = id`.

content/posts/2017-10-21-lldb-dynamic-type.dj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pointer).
5151

5252

5353
The implementation of this function for C++ language lives in
54-
[ItaniumABILanguageRuntime.cpp][ItaniumRT] although, unlike C, C++ lacks a
55-
standardized ABI, almost all compilers on all non-windows platforms use a
54+
[ItaniumABILanguageRuntime.cpp][ItaniumRT]. Although, unlike C, C++ lacks a
55+
standardized ABI, almost all compilers on all non-Windows platforms use a
5656
[specific ABI][ABI], confusingly called Itanium (after a now effectively dead
5757
64-bit CPU architecture).

0 commit comments

Comments
 (0)