Exemplo n.º 1
0
        static string templatePrototype(Intrinsic.Param p)
        {
            string type = p.type;

            type = type.stripPrefix("const ", "const\t");
            return($"{type.mapType()} {p.varname}");
        }
Exemplo n.º 2
0
 static bool isImm(Intrinsic.Param p)
 {
     if (p.type.EndsWith("int") && p.varname.StartsWith("imm"))
     {
         return(true);
     }
     if (p.type == "const int")
     {
         return(true);
     }
     if (p.type == "int" && (p.varname == "rounding" || p.varname == "count" || p.varname == "index" || p.varname == "scale"))
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 3
0
 static string argPrototype(Intrinsic.Param p)
 {
     return($"{p.type.mapType()} {p.varname}".Replace(" * ", " *"));
 }
Exemplo n.º 4
0
        static string argPrototypeUnsigned(Intrinsic.Param p)
        {
            string tp = "unsigned " + p.type;

            return($"{tp.mapType()} {p.varname}".Replace(" * ", " *"));
        }