ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/rcalc.c
Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Fri Feb 23 03:47:57 2024 UTC (8 weeks, 1 day ago) by greg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.38: +3 -1 lines
Diff to previous 1.38
perf: Added array index optimization to calcomp routines

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Fri Mar 10 17:38:01 2023 UTC (13 months, 1 week ago) by greg
Branch: MAIN
CVS Tags: rad5R4
Changes since 1.37: +2 -1 lines
Diff to previous 1.37
perf(rcalc): don't bother to reduce constant expressions with -n option

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Mon Feb 6 22:40:21 2023 UTC (14 months, 1 week ago) by greg
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36
refactor: Changed some char* args to const char* to avoid warnings

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Sun Mar 13 16:11:48 2022 UTC (2 years, 1 month ago) by greg
Branch: MAIN
Changes since 1.35: +50 -47 lines
Diff to previous 1.35
feat(rcalc): Added warning and embedded message when buffer overflows with -P

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Sat Mar 12 19:20:11 2022 UTC (2 years, 1 month ago) by greg
Branch: MAIN
Changes since 1.34: +20 -29 lines
Diff to previous 1.34
refactor(rcalc): Simplified buffer interface a bit

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Sat Mar 12 18:14:45 2022 UTC (2 years, 1 month ago) by greg
Branch: MAIN
Changes since 1.33: +6 -4 lines
Diff to previous 1.33
fix(rcalc): Slight improvement for buffer overflow in -P mode

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Sat Mar 12 15:50:13 2022 UTC (2 years, 1 month ago) by greg
Branch: MAIN
Changes since 1.32: +18 -10 lines
Diff to previous 1.32
feat(rcalc): Added check for "cond" variable defined as constant

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Fri Mar 11 22:50:13 2022 UTC (2 years, 1 month ago) by greg
Branch: MAIN
Changes since 1.31: +54 -29 lines
Diff to previous 1.31
feat(rcalc): Added -P option to pass records where cond evaluates <= 0

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Mon Feb 21 23:00:55 2022 UTC (2 years, 1 month ago) by greg
Branch: MAIN
Changes since 1.30: +157 -157 lines
Diff to previous 1.30
refactor(rcalc): Replaced fputc() call with putchar() and tidied up tabs

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Tue Dec 10 19:00:26 2019 UTC (4 years, 4 months ago) by greg
Branch: MAIN
CVS Tags: rad5R3
Changes since 1.29: +10 -10 lines
Diff to previous 1.29
Minor logic improvement -- should not affect behavior

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Sun May 19 21:15:25 2019 UTC (4 years, 11 months ago) by greg
Branch: MAIN
Changes since 1.28: +12 -12 lines
Diff to previous 1.28
Further efficiency improvements and eliminated calls to tolower()

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Sun May 19 20:02:27 2019 UTC (4 years, 11 months ago) by greg
Branch: MAIN
Changes since 1.27: +9 -4 lines
Diff to previous 1.27
Minor optimization -- don't bother setting variables that aren't used

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Thu Aug 18 00:52:47 2016 UTC (7 years, 8 months ago) by greg
Branch: MAIN
CVS Tags: rad5R1, rad5R2
Changes since 1.26: +6 -6 lines
Diff to previous 1.26
Switched over to more efficient fread/fwrite replacements getbinary/putbinary

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Thu Mar 24 18:48:28 2016 UTC (8 years ago) by greg
Branch: MAIN
Changes since 1.25: +14 -1 lines
Diff to previous 1.25
Added -in options to commands for manual EOF specification

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Sat May 10 01:48:14 2014 UTC (9 years, 11 months ago) by greg
Branch: MAIN
CVS Tags: rad4R2, rad4R2P1, rad4R2P2, rad5R0
Changes since 1.24: +8 -5 lines
Diff to previous 1.24
Improvement on last change for many-digit numbers

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Sat May 10 01:27:14 2014 UTC (9 years, 11 months ago) by greg
Branch: MAIN
Changes since 1.23: +15 -6 lines
Diff to previous 1.23
More adaptive handling of real output format (integers and high-precision)

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Sun Mar 9 20:07:27 2014 UTC (10 years, 1 month ago) by greg
Branch: MAIN
Changes since 1.22: +23 -18 lines
Diff to previous 1.22
Added flockfile calls and fixed SET_FILE_BINARY usage for consistency

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Thu Dec 19 16:38:12 2013 UTC (10 years, 4 months ago) by greg
Branch: MAIN
Changes since 1.21: +11 -5 lines
Diff to previous 1.21
Changed rcalc and icalc to search RAYPATH for input *.cal files

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Sun Jun 14 00:33:16 2009 UTC (14 years, 10 months ago) by greg
Branch: MAIN
CVS Tags: rad4R0, rad4R1
Changes since 1.20: +3 -2 lines
Diff to previous 1.20
Added new genklemsamp utility and made vwright more useful

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Sat Dec 23 17:27:45 2006 UTC (17 years, 4 months ago) by greg
Branch: MAIN
CVS Tags: rad3R9
Changes since 1.19: +56 -38 lines
Diff to previous 1.19
Added byte-swapping i/o options to rcalc

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Tue Jun 14 01:25:02 2005 UTC (18 years, 10 months ago) by greg
Branch: MAIN
CVS Tags: rad3R7P1, rad3R7P2, rad3R8
Changes since 1.18: +5 -2 lines
Diff to previous 1.18
Fixed bug in rcalc with -l option where it sometimes hung

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Thu Jun 2 04:47:27 2005 UTC (18 years, 10 months ago) by greg
Branch: MAIN
Changes since 1.17: +9 -2 lines
Diff to previous 1.17
Added binary i/o options to total and piped output to rtcontrib

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Wed Feb 16 17:20:22 2005 UTC (19 years, 2 months ago) by greg
Branch: MAIN
Changes since 1.16: +6 -1 lines
Diff to previous 1.16
Added error check for files given with -n option

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Fri Dec 10 05:52:14 2004 UTC (19 years, 4 months ago) by greg
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15
Increased maximum input buffer size to 16 Kbytes

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Thu Dec 9 22:09:40 2004 UTC (19 years, 4 months ago) by greg
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14
Fixed bug for input lines containing only blanks

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Mon Oct 11 10:02:15 2004 UTC (19 years, 6 months ago) by greg
Branch: MAIN
CVS Tags: rad3R6, rad3R6P1
Changes since 1.13: +4 -4 lines
Diff to previous 1.13
Fixed bug in format parsing where extra EOL was sometimes added

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Wed Jun 9 16:00:13 2004 UTC (19 years, 10 months ago) by greg
Branch: MAIN
Changes since 1.12: +14 -9 lines
Diff to previous 1.12
Added -p option to rcalc for new passive mode

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Sun Mar 28 20:33:12 2004 UTC (20 years ago) by schorsch
Branch: MAIN
Changes since 1.11: +4 -2 lines
Diff to previous 1.11
Continued ANSIfication, and other fixes and clarifications.

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Fri Nov 14 17:31:24 2003 UTC (20 years, 5 months ago) by schorsch
Branch: MAIN
Changes since 1.10: +3 -1 lines
Diff to previous 1.10
Reduced compile warnings.

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Thu Nov 6 05:39:33 2003 UTC (20 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.9: +37 -2 lines
Diff to previous 1.9
Added an in(n) column function to rcalc

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Wed Nov 5 19:03:03 2003 UTC (20 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.8: +12 -2 lines
Diff to previous 1.8
Added check for too many input columns for binary buffer

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Fri Aug 1 14:14:23 2003 UTC (20 years, 8 months ago) by schorsch
Branch: MAIN
Changes since 1.7: +1 -5 lines
Diff to previous 1.7
Eliminated CPM, MAC, and UNIX conditional compiles.

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sun Jul 27 22:12:01 2003 UTC (20 years, 8 months ago) by schorsch
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6
Added grouping parens to reduce ambiguity warnings.

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

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Sun Jun 8 12:03:09 2003 UTC (20 years, 10 months ago) by schorsch
Branch: MAIN
Changes since 1.4: +82 -51 lines
Diff to previous 1.4
Reduced compile warnings/errors on Windows.

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Sun May 25 05:27:16 2003 UTC (20 years, 11 months ago) by greg
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3
Bug fix in latest change that caused newlines to disappear from output

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Sun Apr 27 06:08:03 2003 UTC (20 years, 11 months ago) by greg
Branch: MAIN
Changes since 1.2: +97 -7 lines
Diff to previous 1.2
Added -idN or -ifN and -od or -of options to rcalc

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Fri Feb 28 20:29:01 2003 UTC (21 years, 1 month ago) by greg
Branch: MAIN
CVS Tags: rad3R5
Changes since 1.1: +3 -2 lines
Diff to previous 1.1
Removed redefinition warning to get back old rcalc behavior

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sat Feb 22 02:07:20 2003 UTC (21 years, 2 months ago) by greg
Branch: MAIN
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

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