about summary refs log tree commit diff stats
path: root/sandbox
Commit message (Expand)AuthorAgeFilesLines
* 4134 - 'input' = 'ingredient'Kartik K. Agaram2017-12-0312-81/+81
* 3980Kartik K. Agaram2017-08-226-55/+55
* 3977Kartik K. Agaram2017-08-221-1/+1
* 3962Kartik K. Agaram2017-06-271-8/+14
* 3960Kartik K. Agaram2017-06-251-13/+37
* 3959Kartik K. Agaram2017-06-251-2/+14
* 3958Kartik K. Agaram2017-06-252-13/+19
* 3957Kartik K. Agaram2017-06-251-0/+2
* 3954Kartik K. Agaram2017-06-251-21/+26
* 3950Kartik K. Agaram2017-06-241-2/+43
* 3946Kartik K. Agaram2017-06-231-3/+3
* 3944Kartik K. Agaram2017-06-231-1/+25
* 3943Kartik K. Agaram2017-06-231-33/+3
* 3939Kartik K. Agaram2017-06-222-3/+7
* 3938Kartik K. Agaram2017-06-221-2/+32
* 3935Kartik K. Agaram2017-06-223-3/+3
* 3929Kartik K. Agaram2017-06-192-1/+3
* 3928Kartik K. Agaram2017-06-191-4/+5
* 3926Kartik K. Agaram2017-06-191-2/+57
* 3925Kartik K. Agaram2017-06-191-0/+107
* 3923Kartik K. Agaram2017-06-181-15/+66
* 3922Kartik K. Agaram2017-06-172-4/+16
* 3921Kartik K. Agaram2017-06-162-3/+5
* 3920Kartik K. Agaram2017-06-161-28/+29
* 3919Kartik K. Agaram2017-06-161-3/+87
* 3918Kartik K. Agaram2017-06-161-3/+47
* 3916 - minimal prints when commenting linesKartik K. Agaram2017-06-161-17/+143
* 3913Kartik K. Agaram2017-06-151-2/+45
* 3912Kartik K. Agaram2017-06-151-34/+44
* 3904Kartik K. Agaram2017-06-092-5/+5
* 3902 - drop redundant redraw of recipe side on F4Kartik K. Agaram2017-06-098-0/+29
* 3897 - various updates to documentationKartik K. Agaram2017-05-291-0/+13
* 3894 - comment/uncomment lines in edit appKartik K. Agaram2017-05-291-3/+111
* 3891Kartik K. Agaram2017-05-291-2/+2
* 3881 - allow students to turn sandboxes into recipesKartik K. Agaram2017-05-271-8/+2
* 3880Kartik K. Agaram2017-05-271-16/+1
* 3879Kartik K. Agaram2017-05-261-3/+3
* 3874Kartik K. Agaram2017-05-201-2/+1
* 3873Kartik K. Agaram2017-05-202-3/+4
* 3869Kartik K. Agaram2017-05-192-67/+194
* 3866Kartik K. Agaram2017-05-191-2/+27
* 3865Kartik K. Agaram2017-05-192-2/+0
* 3861 - screen untouched when entering console modeKartik K. Agaram2017-05-184-0/+4
* 3860 - stop buffering the screen in termboxKartik K. Agaram2017-05-189-21/+8
* 3859Kartik K. Agaram2017-05-131-0/+1
* 3857Kartik K. Agaram2017-05-131-12/+0
* 3856Kartik K. Agaram2017-05-131-0/+1
* 3854Kartik K. Agaram2017-05-139-39/+39
* 3853Kartik K. Agaram2017-05-121-2/+13
* 3852Kartik K. Agaram2017-05-123-2/+35
eneric.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Mu - linux/408float.mu</title>
<meta name="Generator" content="Vim/8.1">
<meta name="plugin-version" content="vim8.1_v1">
<meta name="syntax" content="none">
<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
<meta name="colorscheme" content="minimal-dark">
<style type="text/css">
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #a8a8a8; }
body { font-size:12pt; font-family: monospace; color: #000000; background-color: #a8a8a8; }
a { color:inherit; }
* { font-size:12pt; font-size: 1em; }
.PreProc { color: #c000c0; }
.Special { color: #ff6060; }
.LineNr { }
.Constant { color: #008787; }
.Delimiter { color: #c000c0; }
.muFunction { color: #af5f00; text-decoration: underline; }
.muComment { color: #005faf; }
-->
</style>

<script type='text/javascript'>
<!--

/* function to open any folds containing a jumped-to line before jumping to it */
function JumpToLine()
{
  var lineNum;
  lineNum = window.location.hash;
  lineNum = lineNum.substr(1); /* strip off '#' */

  if (lineNum.indexOf('L') == -1) {
    lineNum = 'L'+lineNum;
  }
  var lineElem = document.getElementById(lineNum);
  /* Always jump to new location even if the line was hidden inside a fold, or
   * we corrected the raw number to a line ID.
   */
  if (lineElem) {
    lineElem.scrollIntoView(true);
  }
  return true;
}
if ('onhashchange' in window) {
  window.onhashchange = JumpToLine;
}

-->
</script>
</head>
<body onload='JumpToLine();'>
<a href='https://github.com/akkartik/mu/blob/main/linux/408float.mu'>https://github.com/akkartik/mu/blob/main/linux/408float.mu</a>
<pre id='vimCodeElement'>
<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Some quick-n-dirty ways to create floats.</span>
<span id="L2" class="LineNr"> 2 </span>
<span id="L3" class="LineNr"> 3 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='408float.mu.html#L3'>fill-in-rational</a></span> _out: (addr float), nr: int, dr: int <span class="Delimiter">{</span>
<span id="L4" class="LineNr"> 4 </span>  <span class="PreProc">var</span> out/<span class="Constant">edi</span>: (addr float) <span class="Special">&lt;-</span> copy _out
<span id="L5" class="LineNr"> 5 </span>  <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special">&lt;-</span> convert nr
<span id="L6" class="LineNr"> 6 </span>  <span class="PreProc">var</span> divisor/<span class="Constant">xmm1</span>: float <span class="Special">&lt;-</span> convert dr
<span id="L7" class="LineNr"> 7 </span>  result <span class="Special">&lt;-</span> divide divisor
<span id="L8" class="LineNr"> 8 </span>  copy-to *out, result
<span id="L9" class="LineNr"> 9 </span><span class="Delimiter">}</span>
<span id="L10" class="LineNr">10 </span>
<span id="L11" class="LineNr">11 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='408float.mu.html#L11'>fill-in-sqrt</a></span> _out: (addr float), n: int <span class="Delimiter">{</span>
<span id="L12" class="LineNr">12 </span>  <span class="PreProc">var</span> out/<span class="Constant">edi</span>: (addr float) <span class="Special">&lt;-</span> copy _out
<span id="L13" class="LineNr">13 </span>  <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special">&lt;-</span> convert n
<span id="L14" class="LineNr">14 </span>  result <span class="Special">&lt;-</span> square-root result
<span id="L15" class="LineNr">15 </span>  copy-to *out, result
<span id="L16" class="LineNr">16 </span><span class="Delimiter">}</span>
<span id="L17" class="LineNr">17 </span>
<span id="L18" class="LineNr">18 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='408float.mu.html#L18'>rational</a></span> nr: int, dr: int<span class="PreProc"> -&gt; </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span>
<span id="L19" class="LineNr">19 </span>  <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="Special">&lt;-</span> convert nr
<span id="L20" class="LineNr">20 </span>  <span class="PreProc">var</span> divisor/<span class="Constant">xmm1</span>: float <span class="Special">&lt;-</span> convert dr
<span id="L21" class="LineNr">21 </span>  result <span class="Special">&lt;-</span> divide divisor
<span id="L22" class="LineNr">22 </span>  <span class="PreProc">return</span> result
<span id="L23" class="LineNr">23 </span><span class="Delimiter">}</span>
</pre>
</body>
</html>
<!-- vim: set foldmethod=manual : -->