mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-24 18:44:07 +03:00
u3: adds comments to road pave implementations
This commit is contained in:
parent
ebf0ab49af
commit
af8607fde4
@ -522,6 +522,8 @@ _pave_north(c3_w* mem_w, c3_w siz_w, c3_w len_w)
|
||||
// the stack starts at the end of the memory segment,
|
||||
// minus space for the road structure [siz_w]
|
||||
//
|
||||
// NB: the returned road is "above" the stack
|
||||
//
|
||||
c3_w* rut_w = mem_w;
|
||||
c3_w* mat_w = ((mem_w + len_w) - siz_w);
|
||||
c3_w* cap_w = mat_w;
|
||||
@ -540,6 +542,8 @@ _pave_south(c3_w* mem_w, c3_w siz_w, c3_w len_w)
|
||||
// the stack starts at the base memory pointer [mem_w],
|
||||
// and ends after the space for the road structure [siz_w]
|
||||
//
|
||||
// NB: the returned road is *on* the stack
|
||||
//
|
||||
c3_w* rut_w = (mem_w + len_w);
|
||||
c3_w* mat_w = mem_w;
|
||||
c3_w* cap_w = mat_w + siz_w;
|
||||
|
Loading…
Reference in New Issue
Block a user