math.inl

Go to the documentation of this file.
00001 /*  
00002  *      math_protocol.h - def_generics for the generic function in the Math protocol
00003  *
00004  *      see def_abstract_generics.h for more info.
00005  *
00006  *  
00007  *          Copyright � John Wainwright 1996
00008  *
00009  */
00010 #pragma warning(push)
00011 #pragma warning(disable:4100)
00012 
00013     def_generic                     (plus,      "+");
00014     def_generic                     (minus,     "-");
00015     def_generic                     (times,     "*");
00016     def_generic                     (div,       "/");
00017     def_generic                     (pwr,       "^");
00018     def_generic                     (uminus,    "u-");
00019 
00020     use_generic                     (eq,        "=");
00021     use_generic                     (ne,        "!=");
00022     def_generic_debug_ok            (gt,        ">");
00023     def_generic_debug_ok            (lt,        "<");
00024     def_generic_debug_ok            (ge,        ">=");
00025     def_generic_debug_ok            (le,        "<=");
00026 
00027     def_visible_generic_debug_ok    ( random,   "random");
00028     def_visible_generic_debug_ok    ( abs,      "abs");
00029 
00030     /* scripter-visible math primitives - implemented as prims since they are type-specific */
00031     
00032     def_visible_generic_debug_ok    ( exp,      "exp");  // exp is polymorphic (floats, ints & quats)
00033     
00034     def_visible_generic_debug_ok    ( acos,     "acos");  // these are polymorphic (floats & ints)
00035     def_visible_generic_debug_ok    ( asin,     "asin");
00036     def_visible_generic_debug_ok    ( atan,     "atan");
00037     def_visible_generic_debug_ok    ( ceil,     "ceil");
00038     def_visible_generic_debug_ok    ( cos,      "cos");
00039     def_visible_generic_debug_ok    ( cosh,     "cosh");
00040     def_visible_generic_debug_ok    ( floor,    "floor");
00041     def_visible_generic_debug_ok    ( log,      "log");
00042     def_visible_generic_debug_ok    ( log10,    "log10");
00043     def_visible_generic_debug_ok    ( sin,      "sin");
00044     def_visible_generic_debug_ok    ( sinh,     "sinh");
00045     def_visible_generic_debug_ok    ( sqrt,     "sqrt");
00046     def_visible_generic_debug_ok    ( tan,      "tan");
00047     def_visible_generic_debug_ok    ( tanh,     "tanh");
00048  
00049     def_visible_generic_debug_ok    ( atan2,    "atan2");
00050     def_visible_generic_debug_ok    ( fmod,     "mod");
00051     def_visible_generic_debug_ok    ( pow,      "pow");
00052     
00053     def_visible_primitive           ( include,  "include");
00054     def_visible_primitive_debug_ok  ( seed,     "seed");
00055 
00056 #pragma warning(pop)
00057