Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /trunk/src/compiler/IL/il-basis.sml
ViewVC logotype

Diff of /trunk/src/compiler/IL/il-basis.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1909, Sun Jun 3 08:29:29 2012 UTC revision 1910, Tue Jun 5 12:02:36 2012 UTC
# Line 19  Line 19 
19    (* Basis function *)    (* Basis function *)
20      val atan2 : name      val atan2 : name
21      val cos : name      val cos : name
22        val fmod : name
23        val log10 : name
24        val ln : name
25      val pow : name      val pow : name
26      val sin : name      val sin : name
27      val sqrt : name      val sqrt : name
# Line 38  Line 41 
41      val same = Atom.same      val same = Atom.same
42      val hash = Atom.hash      val hash = Atom.hash
43    
44    (* Basis function *)    (* Basis functions (in alphabetical order). The names used here are from the C math.h
45       * API, so they may differ from the Diderot names.
46       *)
47      val atan2 = Atom.atom "atan2"      val atan2 = Atom.atom "atan2"
48      val cos = Atom.atom "cos"      val cos = Atom.atom "cos"
49        val fmod = Atom.atom "fmod"
50        val log10 = Atom.atom "log10"
51        val ln = Atom.atom "log"            (* Diderot name is "ln", C name is "log" *)
52      val pow = Atom.atom "pow"      val pow = Atom.atom "pow"
53      val sin = Atom.atom "sin"      val sin = Atom.atom "sin"
54      val sqrt = Atom.atom "sqrt"      val sqrt = Atom.atom "sqrt"
55      val tan = Atom.atom "tan"      val tan = Atom.atom "tan"
56    
57      val allFuns = [      val allFuns = [
58              atan2,              atan2, cos, fmod, log10, ln, pow, sin, sqrt, tan
             cos,  
             pow,  
             sin,  
             sqrt,  
             tan  
59            ]            ]
60    
61      structure Set = AtomSet      structure Set = AtomSet

Legend:
Removed from v.1909  
changed lines
  Added in v.1910

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0