Commit Graph
58 Commits
Author SHA1 Message Date
Andrew Johnson f169781de0 Merged remove-keywords-3.15 branch 2016-07-21 14:12:51 -05:00
Andrew Johnson a5b8b0b890 Use fabs() in calcPerform 2016-05-24 11:12:25 +02:00
Andrew Johnson f4a16a1e1e Remaining Revision-Id keywords in source 2016-05-22 05:43:09 +02:00
Andrew Johnson 76d7ce1f76 Fix MSVC (de)-optimizer issue 2016-02-24 15:06:59 -06:00
Andrew Johnson 89e6fdbca0 Fixed conversion overflows in tests
Minor tidying-up, added comments about casting for bitwise operations.
2016-02-19 15:57:44 -06:00
Ralph Lange 599e6635fb libCom/calc: fix bit31 bit manipulations 2016-02-18 15:19:01 +01:00
Ralph Lange 9eedf0581e libCom/calc: Use epics(U)Int32 for all integer calculations
Adapted backport of 3.15 revision 12308
2016-02-18 14:44:43 +01:00
Andrew Johnson 881d13ac07 Merged the expand-calc-size branch.
This allows calc and calcout record expressions to be up to
79 characters long, and shortens the postfix buffer needed by
introducing integer literals.  Also removes the length limit
for access security CALC expressions.
2010-10-07 14:16:24 -05:00
Andrew Johnson fbda9f3280 RCS keyword updates for Bazaar
Replaced $Id$ and $Header$ keywords with $Revision-Id$
Deleted $Log$ keywords and any log messages
2010-10-05 14:27:37 -05:00
Andrew Johnson bb7d8d6435 libCom/calc: Added integer literals, which use less space in Postfix.
Renamed LITERAL to LITERAL_DOUBLE and added LITERAL_INT.
postfix() only uses LITERAL_INT if the results are identical.
Adjusted INFIX_TO_POSTFIX_SIZE() macro to match.
Cleaned up some other internal issues.
2010-10-04 13:32:34 -05:00
Andrew Johnson f17ac39f29 Disable divide by zero warnings on MSVC when generating NAN and INF.
Use those values rather than calculating them independently.
2009-08-25 18:19:49 +00:00
Andrew Johnson d6fcbe14ab Cleaned up dbDefs.h and errMdef.h
Added various #include lines needed in other sources.
2009-07-09 15:27:43 +00:00
Ralph Lange 7fccc59fe9 ANSIfication of stuff (mostly missing argument types in declarations) 2009-04-03 17:46:26 +00:00
Andrew Johnson 2a34e2e464 Don't use fmod(), broken on vxWorks.
Use long rather than int for integer calculations.
2008-05-08 16:15:50 +00:00
Andrew Johnson b281b453bb Added variable argument functions, mostly by Benjamin Fransken.
MIN, MAX, FINITE and ISINF can now take any number of arguments.
2008-04-10 18:06:47 +00:00
Andrew Johnson ad8302f4b1 Added VAL keyword to CALC parser and evaluator; evaluates to previous result. 2007-05-03 20:03:38 +00:00
Jeff Hill 049e054c31 fixed win32 dll exports 2006-11-30 22:29:26 +00:00
Andrew Johnson e98b305246 Fix up calc and calcout record and associated code to use the new features
of postfix() and calcPerform().
2006-10-03 20:22:23 +00:00
Andrew Johnson 97a5aa16a0 Major update, code reorganization and enhancement. 2006-03-30 20:07:06 +00:00
W. Eric Norum 4a95bacb24 Pick up OS-specific declarations. 2004-09-14 23:08:29 +00:00
Jeff Hill 2d613ba5d0 fixed DLL export 2004-08-11 00:46:12 +00:00
Janet B. Anderson 93b0bf478d Updated license comments. 2002-07-12 21:35:43 +00:00
Marty Kraimer 4428be70c3 support isinf; epicsIsNAN=>isnan; add test for epicsMath 2002-04-11 15:44:34 +00:00
Marty Kraimer d78307e798 return -1 if result is nan 2002-03-27 13:38:59 +00:00
Ralph Lange d3fce00c03 MODULO bug (range was limited to short int) fixed. 2000-08-09 13:51:08 +00:00
Jeff Hill d15b7f24c1 use ANSI function prototype 2000-02-07 21:06:34 +00:00
Marty Kraimer c786f54b63 changes for 3.14 1999-09-13 19:18:48 +00:00
Marty Kraimer c6304512eb Move private definitions to postfixPvt.h 1998-03-16 16:23:42 +00:00
Jeff Hill 27c4d0574f cleaned up the DLL symbol export 1998-02-27 01:34:15 +00:00
Ken Evans 88d36c7db3 Made a large number of changes to epicsShareThings in libCom routines
to get imports and exports straight on WIN32.  Not everything is fixed
at this time.
1998-02-20 21:45:20 +00:00
Janet B. Anderson f55d861f40 Added aten2 function pre Nick Rees. 1997-07-23 15:06:43 +00:00
Marty Kraimer ed3cefacef Change so that 0 is INVALID_ 1997-07-11 12:20:35 +00:00
Jeff Hill 7946e9b921 DLL keyword adjustments 1997-05-01 23:51:07 +00:00
Jeff Hill cbd5d9a36e removed conflict >>>>> 1997-05-01 20:26:07 +00:00
Jeff Hill 6b6e5e7515 updated dll keywords 1997-05-01 19:57:53 +00:00
Marty Kraimer 437142b5bb Fix compiler warning messages 1997-04-30 19:12:25 +00:00
Jeff Hill d3c6310bb1 API changes and include with not <> 1997-04-10 19:45:43 +00:00
Janet B. Anderson 20eed1bd05 Fixed END_STACK definition and fixed printf stmnt. 1996-06-19 14:37:06 +00:00
Janet B. Anderson e4c383cfb5 Added LN and SQRT as synonyms for LOGE and SQR, respectively.
Added NINT, nearest integer function.
Modified handling of "-"  so operator can be either unary or binary.
1995-02-13 16:38:27 +00:00
Mark Anderson 3c96fdef74 Change the locally defined and used random() function to local_random() to
avoid collision with the standard math library's random() function.
1994-10-13 19:58:34 +00:00
Janet B. Anderson 5b94f9dd1f Must skip over constant when looking for COND_END,COND_ELS 1994-10-05 18:43:37 +00:00
Marty Kraimer 714eb851ee Cast on memcpy arg to get rid of warning message 1994-09-02 13:38:25 +00:00
Mike Bordua d278bf8277 Channel Access changes from Jeff Hill. 1994-07-13 02:29:43 +00:00
Mike Bordua 9d63d16911 Added various Casts to stop compiler warnings. 1994-07-12 20:34:56 +00:00
Janet B. Anderson 0a5455ac11 Added support for CONST_PI, CONST_D2R, and CONST_R2D 1994-05-11 11:37:44 +00:00
Mike Bordua 1696180b42 Removed V5/V4 and EPICS_V2 conditionals. 1993-08-04 12:54:53 +00:00
Janet B. Anderson 8b2d8fb640 removed varargs.h 1993-07-26 15:17:22 +00:00
Marty Kraimer d7d3c0b42a made ANSI C compatible 1993-01-29 12:49:14 +00:00
Janet B. Anderson e13ece3931 ANSI c changes 1992-08-26 13:36:32 +00:00
Janet B. Anderson 2af60b3d4e flt pt constant string replaced with double in postfix expression 1992-05-11 14:53:13 +00:00