/*------------------------->  Sather - configfile  <-------------------------*/
/* Copyright (C) 2000 by K Hopper, University of Waikato, New Zealand        */
/* This file is part of the GNU Sather library. It is free software; you may */
/* redistribute  and/or modify it under the terms of the GNU Library General */
/* Public  License (LGPL)  as published  by the  Free  Software  Foundation; */
/* either version 2 of the license, or (at your option) any later version.   */
/* This  library  is distributed  in the  hope that it will  be  useful, but */
/* WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY */
/* or FITNESS FOR A PARTICULAR PURPOSE. See Doc/LGPL for more details.       */
/* The license text is also available from:  Free Software Foundation, Inc., */
/* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA                     */
/*------------>  Please email comments to <bug-sather@gnu.org>  <------------*/

#ifndef DLOGEXP_CONFIG
#define DLOGEXP_CONFIG

#ifdef PP
#undef PP
#endif

#ifdef VSTD
#undef VSTD
#endif

#ifdef IM
#undef IM
#endif

#define PP	no_pre,no_post
#define VSTD    var "@r $$;"
#define IM	declare "#include <math.h>"

--        The following definitions assume that all floating point 
--   operations return NaN if used with wrong arguments (a la IEEE).
--   If this is not the case for some machines, all functions that
--   could break should be made 'fragile'.

FLTD_LOG_2:		PP,VSTD,IM,exec "$$=M_LOG2;" "$$";
FLTD_LOG2_E:		PP,VSTD,IM,exec "$$=M_LOG2E;" "$$";
FLTD_LOG10_E:		PP,VSTD,IM,exec "$$=M_LOG10E;" "$$";
FLTD_LOG_10:		PP,VSTD,IM,exec "$$=M_LN10;" "$$";
FLTD_EXP:		PP,VSTD,IM,exec "$$=exp($0);" "$$";
FLTD_EXPM1:		PP,VSTD,IM,exec "$$=expm1($0);" "$$";
FLTD_EXP2:		PP,VSTD,IM,exec "$$=exp2($0);" "$$";
FLTD_EXP10:		PP,VSTD,IM,exec "$$=FLTDEXP10($0);" "$$";
FLTD_LOG:		PP,VSTD,IM,exec "$$=log($0);" "$$";
FLTD_LOG1P:		PP,VSTD,IM,exec "$$=log1p($0);" "$$";
FLTD_LOG10:		PP,VSTD,IM,exec "$$=log10($0);" "$$";
FLTD_POW:		PP,VSTD,IM,exec "$$=pow($0,$1);" "$$";

#endif
