ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/calexpr.c
Revision 2.51 - (view) (download) (annotate) - [select for diffs]
Mon Sep 16 17:31:14 2024 UTC (7 weeks, 6 days ago) by greg
Branch: MAIN
CVS Tags: HEAD
Changes since 2.50: +41 -41 lines
Diff to previous 2.50 , to selected 1.1
refactor: Changed too-generic symbol names in calcomp.h

Revision 2.50 - (view) (download) (annotate) - [select for diffs]
Tue Feb 27 01:24:10 2024 UTC (8 months, 2 weeks ago) by greg
Branch: MAIN
Changes since 2.49: +4 -3 lines
Diff to previous 2.49 , to selected 1.1
perf: Minor optimization

Revision 2.49 - (view) (download) (annotate) - [select for diffs]
Mon Feb 26 18:16:35 2024 UTC (8 months, 2 weeks ago) by greg
Branch: MAIN
Changes since 2.48: +2 -10 lines
Diff to previous 2.48 , to selected 1.1
perf: Added shortcut to avoid extra call in eargument(), which was bottleneck

Revision 2.48 - (view) (download) (annotate) - [select for diffs]
Sun Feb 25 04:41:44 2024 UTC (8 months, 2 weeks ago) by greg
Branch: MAIN
Changes since 2.47: +9 -12 lines
Diff to previous 2.47 , to selected 1.1
fix: Made error non-fatal in case optimization done twice

Revision 2.47 - (view) (download) (annotate) - [select for diffs]
Sun Feb 25 04:11:10 2024 UTC (8 months, 2 weeks ago) by greg
Branch: MAIN
Changes since 2.46: +11 -8 lines
Diff to previous 2.46 , to selected 1.1
fix: Potential bug in free allocated EPNODE arrays

Revision 2.46 - (view) (download) (annotate) - [select for diffs]
Sat Feb 24 19:26:44 2024 UTC (8 months, 2 weeks ago) by greg
Branch: MAIN
Changes since 2.45: +2 -2 lines
Diff to previous 2.45 , to selected 1.1
perf: Minor optimization

Revision 2.45 - (view) (download) (annotate) - [select for diffs]
Sat Feb 24 19:11:45 2024 UTC (8 months, 2 weeks ago) by greg
Branch: MAIN
Changes since 2.44: +5 -5 lines
Diff to previous 2.44 , to selected 1.1
style: Fixed spacing and missing "static" keyword

Revision 2.44 - (view) (download) (annotate) - [select for diffs]
Sat Feb 24 19:00:23 2024 UTC (8 months, 2 weeks ago) by greg
Branch: MAIN
Changes since 2.43: +57 -20 lines
Diff to previous 2.43 , to selected 1.1
perf: Flatten hierarchies for commutative & associative operators, '+' and '*'

Revision 2.43 - (view) (download) (annotate) - [select for diffs]
Fri Feb 23 03:47:57 2024 UTC (8 months, 2 weeks ago) by greg
Branch: MAIN
Changes since 2.42: +65 -37 lines
Diff to previous 2.42 , to selected 1.1
perf: Added array index optimization to calcomp routines

Revision 2.42 - (view) (download) (annotate) - [select for diffs]
Fri Apr 8 23:32:25 2022 UTC (2 years, 7 months ago) by greg
Branch: MAIN
CVS Tags: rad5R4
Changes since 2.41: +13 -13 lines
Diff to previous 2.41 , to selected 1.1
perf: Removing some conditionals with binary operations

Revision 2.41 - (view) (download) (annotate) - [select for diffs]
Sat Jan 15 02:00:21 2022 UTC (2 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.40: +7 -7 lines
Diff to previous 2.40 , to selected 1.1
refactor: eliminated stray uses of (char *) to point to memory

Revision 2.40 - (view) (download) (annotate) - [select for diffs]
Fri Jun 19 22:33:45 2020 UTC (4 years, 4 months ago) by greg
Branch: MAIN
CVS Tags: rad5R3
Changes since 2.39: +6 -1 lines
Diff to previous 2.39 , to selected 1.1
Added reduction for (E4)^1

Revision 2.39 - (view) (download) (annotate) - [select for diffs]
Sat Dec 28 18:05:13 2019 UTC (4 years, 10 months ago) by greg
Branch: MAIN
Changes since 2.38: +1 -3 lines
Diff to previous 2.38 , to selected 1.1
Removed redundant include files

Revision 2.38 - (view) (download) (annotate) - [select for diffs]
Sat Dec 7 16:38:08 2019 UTC (4 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.37: +4 -1 lines
Diff to previous 2.37 , to selected 1.1
Slight efficiency improvement in eval()

Revision 2.37 - (view) (download) (annotate) - [select for diffs]
Mon Mar 4 18:16:18 2019 UTC (5 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.36: +35 -35 lines
Diff to previous 2.36 , to selected 1.1
Minor optimizations in oft-called argument() function

Revision 2.36 - (view) (download) (annotate) - [select for diffs]
Sat Aug 1 23:27:04 2015 UTC (9 years, 3 months ago) by greg
Branch: MAIN
CVS Tags: rad5R0, rad5R1, rad5R2
Changes since 2.35: +3 -2 lines
Diff to previous 2.35 , to selected 1.1
Fixed various compiler warnings (mostly harmless)

Revision 2.35 - (view) (download) (annotate) - [select for diffs]
Sat Sep 4 19:04:35 2010 UTC (14 years, 2 months ago) by greg
Branch: MAIN
CVS Tags: rad4R1, rad4R2, rad4R2P1, rad4R2P2
Changes since 2.34: +12 -7 lines
Diff to previous 2.34 , to selected 1.1
Reduce (expr)/const to (expr)*(1/const)

Revision 2.34 - (view) (download) (annotate) - [select for diffs]
Sun Jul 25 05:50:27 2010 UTC (14 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.33: +43 -16 lines
Diff to previous 2.33 , to selected 1.1
Added reduction of constant expressions (0*x), (x*0), (0/x), (1^x), (0^x), (x^0)

Revision 2.33 - (view) (download) (annotate) - [select for diffs]
Sun Jun 14 18:21:58 2009 UTC (15 years, 5 months ago) by greg
Branch: MAIN
CVS Tags: rad4R0
Changes since 2.32: +3 -2 lines
Diff to previous 2.32 , to selected 1.1
Added ability to specify constant name in rtcontrib -bn option

Revision 2.32 - (view) (download) (annotate) - [select for diffs]
Thu May 1 16:42:05 2008 UTC (16 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.31: +3 -3 lines
Diff to previous 2.31 , to selected 1.1
Math library and warning fixes for Solaris

Revision 2.31 - (view) (download) (annotate) - [select for diffs]
Wed May 10 15:21:20 2006 UTC (18 years, 6 months ago) by greg
Branch: MAIN
CVS Tags: rad3R8, rad3R9
Changes since 2.30: +7 -4 lines
Diff to previous 2.30 , to selected 1.1
Changed from IEEE macro to checking for isnan macro

Revision 2.30 - (view) (download) (annotate) - [select for diffs]
Tue May 17 17:51:51 2005 UTC (19 years, 5 months ago) by greg
Branch: MAIN
CVS Tags: rad3R7P1, rad3R7P2
Changes since 2.29: +6 -1 lines
Diff to previous 2.29 , to selected 1.1
Added "eofc" global for specifying an optional EOF character, such as '}'

Revision 2.29 - (view) (download) (annotate) - [select for diffs]
Sun Mar 28 20:33:12 2004 UTC (20 years, 7 months ago) by schorsch
Branch: MAIN
CVS Tags: rad3R6, rad3R6P1
Changes since 2.28: +3 -1 lines
Diff to previous 2.28 , to selected 1.1
Continued ANSIfication, and other fixes and clarifications.

Revision 2.28 - (view) (download) (annotate) - [select for diffs]
Fri Nov 14 17:22:06 2003 UTC (21 years ago) by schorsch
Branch: MAIN
Changes since 2.27: +95 -69 lines
Diff to previous 2.27 , to selected 1.1
Reduced compile warnings, and other compatibility fixes.

Revision 2.27 - (view) (download) (annotate) - [select for diffs]
Mon Aug 4 19:20:26 2003 UTC (21 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.26: +2 -2 lines
Diff to previous 2.26 , to selected 1.1
Added prototype for eoper[] dispatch array

Revision 2.26 - (view) (download) (annotate) - [select for diffs]
Sun Jul 27 22:12:01 2003 UTC (21 years, 3 months ago) by schorsch
Branch: MAIN
Changes since 2.25: +4 -4 lines
Diff to previous 2.25 , to selected 1.1
Added grouping parens to reduce ambiguity warnings.

Revision 2.25 - (view) (download) (annotate) - [select for diffs]
Mon Jul 21 22:30:17 2003 UTC (21 years, 3 months ago) by schorsch
Branch: MAIN
Changes since 2.24: +3 -2 lines
Diff to previous 2.24 , to selected 1.1
Eliminated copystruct() macro, which is unnecessary in ANSI.
Reduced ambiguity warnings for nested if/if/else clauses.

Revision 2.24 - (view) (download) (annotate) - [select for diffs]
Thu Jul 17 09:21:29 2003 UTC (21 years, 4 months ago) by schorsch
Branch: MAIN
Changes since 2.23: +8 -5 lines
Diff to previous 2.23 , to selected 1.1
Added prototypes and includes from patch by Randolph Fritz.
Added more required includes and reduced other compile warnings.

Revision 2.23 - (view) (download) (annotate) - [select for diffs]
Thu Jul 3 22:41:44 2003 UTC (21 years, 4 months ago) by schorsch
Branch: MAIN
Changes since 2.22: +10 -10 lines
Diff to previous 2.22 , to selected 1.1
Reduced compile problems on Windows.

Revision 2.22 - (view) (download) (annotate) - [select for diffs]
Sat Jun 7 12:50:20 2003 UTC (21 years, 5 months ago) by schorsch
Branch: MAIN
Changes since 2.21: +65 -66 lines
Diff to previous 2.21 , to selected 1.1
Various small changes to reduce compile warnings/errors on Windows.

Revision 2.21 - (view) (download) (annotate) - [select for diffs]
Mon Jun 2 18:13:54 2003 UTC (21 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.20: +1 -1 lines
Diff to previous 2.20 , to selected 1.1
Turned off E_REDEFW by default

Revision 2.20 - (view) (download) (annotate) - [select for diffs]
Wed Mar 5 16:16:52 2003 UTC (21 years, 8 months ago) by greg
Branch: MAIN
CVS Tags: rad3R5
Changes since 2.19: +2 -2 lines
Diff to previous 2.19 , to selected 1.1
Made errno checking explicit after math calls to avoid spurious warnings

Revision 2.19 - (view) (download) (annotate) - [select for diffs]
Tue Feb 25 02:47:21 2003 UTC (21 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.18: +1 -56 lines
Diff to previous 2.18 , to selected 1.1
Replaced inline copyright notice with #include "copyright.h"

Revision 2.18 - (view) (download) (annotate) - [select for diffs]
Sat Feb 22 02:07:21 2003 UTC (21 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.17: +97 -84 lines
Diff to previous 2.17 , to selected 1.1
Changes and check-in for 3.5 release
Includes new source files and modifications not recorded for many years
See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release

Revision 2.17 - (view) (download) (annotate) - [select for diffs]
Mon Aug 17 17:57:30 1998 UTC (26 years, 3 months ago) by gwlarson
Branch: MAIN
Changes since 2.16: +8 -4 lines
Diff to previous 2.16 , to selected 1.1
added more careful typing of numbers

Revision 2.16 - (view) (download) (annotate) - [select for diffs]
Thu Feb 16 09:49:29 1995 UTC (29 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.15: +47 -0 lines
Diff to previous 2.15 , to selected 1.1
made redefinition warnings more intelligent --
won't report new definitions that are equivalent to old

Revision 2.15 - (view) (download) (annotate) - [select for diffs]
Wed Sep 8 09:12:37 1993 UTC (31 years, 2 months ago) by greg
Branch: MAIN
Changes since 2.14: +4 -0 lines
Diff to previous 2.14 , to selected 1.1
added conditional declaration of atof()

Revision 2.14 - (view) (download) (annotate) - [select for diffs]
Fri Jun 4 15:04:48 1993 UTC (31 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.13: +1 -1 lines
Diff to previous 2.13 , to selected 1.1
removed conflicting gets() and puts() declarations

Revision 2.13 - (view) (download) (annotate) - [select for diffs]
Fri Jun 4 14:27:58 1993 UTC (31 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.12: +0 -3 lines
Diff to previous 2.12 , to selected 1.1
Removed unnecessary declaration of atof()

Revision 2.12 - (view) (download) (annotate) - [select for diffs]
Fri Mar 5 15:14:00 1993 UTC (31 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.11: +4 -1 lines
Diff to previous 2.11 , to selected 1.1
portability improvements

Revision 2.11 - (view) (download) (annotate) - [select for diffs]
Sun Nov 22 11:53:36 1992 UTC (31 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.10: +3 -3 lines
Diff to previous 2.10 , to selected 1.1
minor change to epfree()

Revision 2.10 - (view) (download) (annotate) - [select for diffs]
Tue Nov 10 10:29:19 1992 UTC (32 years ago) by greg
Branch: MAIN
Changes since 2.9: +4 -2 lines
Diff to previous 2.9 , to selected 1.1
fixed bug for free() routines that touch contents

Revision 2.9 - (view) (download) (annotate) - [select for diffs]
Tue Oct 6 12:29:36 1992 UTC (32 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.8: +2 -2 lines
Diff to previous 2.8 , to selected 1.1
Changes for 32-bit PC port

Revision 2.8 - (view) (download) (annotate) - [select for diffs]
Fri Oct 2 15:57:29 1992 UTC (32 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.7: +2 -1 lines
Diff to previous 2.7 , to selected 1.1
Removed problematic math function declarations

Revision 2.7 - (view) (download) (annotate) - [select for diffs]
Sat Sep 26 08:13:32 1992 UTC (32 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.6: +1 -1 lines
Diff to previous 2.6 , to selected 1.1
minor change to syntax error reporting

Revision 2.6 - (view) (download) (annotate) - [select for diffs]
Mon Sep 21 12:01:54 1992 UTC (32 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.5: +61 -62 lines
Diff to previous 2.5 , to selected 1.1
Changes for PC port

Revision 2.5 - (view) (download) (annotate) - [select for diffs]
Tue May 19 20:21:58 1992 UTC (32 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.4: +3 -1 lines
Diff to previous 2.4 , to selected 1.1
removed a couple of unnecessary code segments

Revision 2.4 - (view) (download) (annotate) - [select for diffs]
Fri May 15 16:38:52 1992 UTC (32 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.3: +1 -1 lines
Diff to previous 2.3 , to selected 1.1
changed library links to be reliable to avoid strcmp() call

Revision 2.3 - (view) (download) (annotate) - [select for diffs]
Thu May 7 22:30:41 1992 UTC (32 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.2: +5 -8 lines
Diff to previous 2.2 , to selected 1.1
simplified and improved logic for testing of constant functions

Revision 2.2 - (view) (download) (annotate) - [select for diffs]
Thu Dec 19 14:45:47 1991 UTC (32 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.1: +4 -1 lines
Diff to previous 2.1 , to selected 1.1
added conditional compilation of atof() declarations

Revision 2.1 - (view) (download) (annotate) - [select for diffs]
Tue Nov 12 16:55:21 1991 UTC (33 years ago) by greg
Branch: MAIN
Changes since 1.16: +0 -0 lines
Diff to previous 1.16 , to selected 1.1
updated revision number for release 2.0

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Wed Aug 14 16:26:31 1991 UTC (33 years, 3 months ago) by greg
Branch: MAIN
Changes since 1.15: +4 -0 lines
Diff to previous 1.15 , to selected 1.1
eliminated possibility of generating -(-E5) parse tree

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Wed Aug 14 08:18:14 1991 UTC (33 years, 3 months ago) by greg
Branch: MAIN
Changes since 1.14: +4 -2 lines
Diff to previous 1.14 , to selected 1.1
fixed code for long identifiers

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Thu Aug 8 13:40:09 1991 UTC (33 years, 3 months ago) by greg
Branch: MAIN
Changes since 1.13: +10 -6 lines
Diff to previous 1.13 , to selected 1.1
added bug associated with context naming and function arguments

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Thu Aug 8 12:11:19 1991 UTC (33 years, 3 months ago) by greg
Branch: MAIN
Changes since 1.12: +13 -0 lines
Diff to previous 1.12 , to selected 1.1
added getscanpos() function

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Thu Aug 8 11:22:04 1991 UTC (33 years, 3 months ago) by greg
Branch: MAIN
Changes since 1.11: +36 -30 lines
Diff to previous 1.11 , to selected 1.1
added contexts to definition naming

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Tue Apr 23 16:56:39 1991 UTC (33 years, 6 months ago) by greg
Branch: MAIN
Changes since 1.10: +25 -12 lines
Diff to previous 1.10 , to selected 1.1
added isconstfun() to find constant functions passed as arguments

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Tue Apr 23 15:44:41 1991 UTC (33 years, 6 months ago) by greg
Branch: MAIN
Changes since 1.9: +4 -2 lines
Diff to previous 1.9 , to selected 1.1
changed setfunc() call to include assignment type

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Tue Apr 23 15:26:26 1991 UTC (33 years, 6 months ago) by greg
Branch: MAIN
Changes since 1.8: +45 -1 lines
Diff to previous 1.8 , to selected 1.1
added ':' definitions for constant expressions

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Wed Apr 17 10:54:58 1991 UTC (33 years, 7 months ago) by greg
Branch: MAIN
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 , to selected 1.1
changed exponentiation to right-associative

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sat Aug 18 16:28:52 1990 UTC (34 years, 3 months ago) by greg
Branch: MAIN
Changes since 1.6: +7 -8 lines
Diff to previous 1.6 , to selected 1.1
changed appearance of syntax error reports once more

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Thu Jul 19 12:56:50 1990 UTC (34 years, 4 months ago) by greg
Branch: MAIN
Changes since 1.5: +47 -10 lines
Diff to previous 1.5 , to selected 1.1
added line numbers to error reports

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Tue Jun 26 09:15:11 1990 UTC (34 years, 4 months ago) by greg
Branch: MAIN
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 , to selected 1.1
nit-picking for Stardent compiler

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Thu Jun 29 09:44:33 1989 UTC (35 years, 4 months ago) by greg
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 , to selected 1.1
Deleted paranoid test that will never happen in syntax()

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Wed Jun 14 22:29:01 1989 UTC (35 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.2: +7 -13 lines
Diff to previous 1.2 , to selected 1.1
Minor modification of UMINUS compilation

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Mon Apr 10 22:06:37 1989 UTC (35 years, 7 months ago) by greg
Branch: MAIN
Changes since 1.1: +2 -0 lines
Diff to previous 1.1
Fixed conditional compile error in epfree()

Revision 1.1 - (view) (download) (annotate) - [selected]
Thu Feb 2 10:34:27 1989 UTC (35 years, 9 months ago) by greg
Branch: MAIN
Initial revision

Convenience Links

Links to HEAD: (view) (download) (annotate) Links to MAIN: (view) (download) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a