From 3eb7ec9a67e867275b862f9947deafe387012819 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 17 Mar 2003 04:36:54 +0000 Subject: "" svn path=/trunk/; revision=476 --- externals/grill/vasp/source/ops_trnsc.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'externals/grill/vasp/source/ops_trnsc.h') diff --git a/externals/grill/vasp/source/ops_trnsc.h b/externals/grill/vasp/source/ops_trnsc.h index 73617d9a..408aeb9b 100644 --- a/externals/grill/vasp/source/ops_trnsc.h +++ b/externals/grill/vasp/source/ops_trnsc.h @@ -15,16 +15,14 @@ WARRANTIES, see the file, "license.txt," in this distribution. // Transcendent math functions -namespace VecOp { - inline BL d_pow(OpParam &p) { return d__rbin >(p); } - inline BL d_rpow(OpParam &p) { return d__cbin >(p); } +DEFOP(S,d_pow,pow,rbin) +DEFOP(S,d_rpow,pow,cbin) - inline BL d_sqrt(OpParam &p) { return d__run >(p); } - inline BL d_ssqrt(OpParam &p) { return d__run >(p); } +DEFOP(S,d_sqrt,sqrt,run) +DEFOP(S,d_ssqrt,ssqrt,run) - inline BL d_exp(OpParam &p) { return d__run >(p); } - inline BL d_log(OpParam &p) { return d__run >(p); } -} +DEFOP(S,d_exp,exp,run) +DEFOP(S,d_log,log,run) namespace VaspOp { inline Vasp *m_pow(OpParam &p,CVasp &src,const Argument &arg,CVasp *dst = NULL) { return m_rbin(p,src,arg,dst,VecOp::d_pow); } // power -- cgit v1.2.1