New directory tree, with preprocessor/ inside interpretor/.
[Faustine.git] / interpretor / faust-0.9.47mr3 / compiler / extended / ceilprim.cpp
diff --git a/interpretor/faust-0.9.47mr3/compiler/extended/ceilprim.cpp b/interpretor/faust-0.9.47mr3/compiler/extended/ceilprim.cpp
deleted file mode 100644 (file)
index b561560..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-#include "xtended.hh"
-#include "Text.hh"
-#include <math.h>
-
-#include "floats.hh"
-
-class CeilPrim : public xtended
-{
-
- public:
-       CeilPrim() : xtended("ceil") {}
-       
-       virtual unsigned int    arity () { return 1; }
-       
-       virtual bool    needCache ()    { return true; }
-       
-       virtual Type    infereSigType (const vector<Type>& args)
-       {
-               assert (args.size() == arity());
-               return floatCast(args[0]);
-       }
-       
-       virtual void    sigVisit (Tree sig, sigvisitor* visitor) {}     
-       
-       virtual int infereSigOrder (const vector<int>& args) {
-               assert (args.size() == arity());
-               return args[0];
-       }
-
-       
-       virtual Tree    computeSigOutput (const vector<Tree>& args) {
-               num n;
-               assert (args.size() == arity());
-               if (isNum(args[0],n)) {
-                       return tree(ceil(double(n)));
-               } else {
-                       return tree(symbol(), args[0]);
-               }
-       }
-               
-       virtual string  generateCode (Klass* klass, const vector<string>& args, const vector<Type>& types)
-       {
-               assert (args.size() == arity());
-               assert (types.size() == arity());
-        
-               return subst("ceil$1($0)", args[0], isuffix());
-       }
-       
-       virtual string  generateLateq (Lateq* lateq, const vector<string>& args, const vector<Type>& types)
-       {
-               assert (args.size() == arity());
-               assert (types.size() == arity());
-        
-               return subst("\\left\\lceil $0 \\right\\rceil", args[0]);
-       }
-       
-};
-
-
-xtended* gCeilPrim = new CeilPrim();
-
-