Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I used time on that damn 2d multiplication - so its going in
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
,.........|............................................................................................................, | ||
:mult | : | ||
: | +------+ : | ||
: v | v : | ||
: *==============* *==================* *==============* *==================================* | *============* : | ||
: !case N of E, S!->!send [(W,S),(W,E)]!->!case W of E, S!->!send [(Inl Inl W,S),(Inl Inl W,E)]!--#->!send [(W,E)]!-- | ||
: *==============* *==================* *==============* *==================================* | *============* : | ||
: | | | | | : | ||
: | +-#----------------------+ +-----+ | *==================* | : | ||
: | | | | | +->!send [(W,S),(W,E)]!---+ | : | ||
: v | | v | *==================* | | : | ||
: *======================* | | *============* | | | | : | ||
: !send [(N,S),(Inr N,E)]!-+ | +-------------->!send [(N,E)]!-#---------------#-------------#------#------------------ | ||
: *======================* | | *============* | | | | : | ||
: | | | | | | | : | ||
: | | | +--------------------------+ | +-------------#-------------#------+ : | ||
: | | | | | | | | | : | ||
: | +----------#-#-+ +--------+ +-#-#-------------#-------------#------------------------- | ||
: | | | | | | | | | | : | ||
: v | +--------+ | v +----+ | v v : | ||
: *============* | | | *==================* | *========* *========* : | ||
: +->!send [(W,E)]!-+ | +--------+ !send [(N,E),(N,S)]!----------#-+ +-->!use mult!->!use plus!--------------------- | ||
: | *============* | | *==================* | | | *========* *========* : | ||
: | | | | | | | : | ||
: | | | | | | +-------------------------------+ : | ||
: | | +---------------------+ | | | | : | ||
: | | | +--------------#-#------------------------------------#----+ : | ||
: | +---------------------+ | | | | | : | ||
: | | | | | | | : | ||
: | *==============* *==================* | | *==============* | | *==============================* | | : | ||
--#->!case W of E, S!->!send [(W,E),(W,S)]!-#-#->!case W of E, S!-#-#-->!send [(Inl Inl W,S),(Inl W,E)]!-+ | : | ||
: | *==============* *==================* | | *==============* | | *==============================* | : | ||
: | | | | | | | | | | : | ||
: | | +------------+ | +---+ | | +----+ v : | ||
: | | | | | | | *====================* : | ||
: | v v | | | | +->!send [(Inl Inr N,E)]!-------- | ||
: | *==========================* *============* | | | | | *====================* : | ||
: | !send [(Inr N,S),(Inr N,E)]!------------>!send [(W,E)]!-#-----#-#-----------#------#-------------------------------- | ||
: | *==========================* *============* | | | | | : | ||
: | | +--------------------------+ | | v | : | ||
: +-------+ v | | *============* | : | ||
: *==================* | +-->!send [(N,E)]!-#-------------------------------- | ||
: !send [(N,E),(N,S)]!-----------------------+ *============* | : | ||
: *==================* | : | ||
: | | : | ||
: +-----------------------------------------------------+ : | ||
,......................................................................................................................, |