aboutsummaryrefslogtreecommitdiff
path: root/src/macros
AgeCommit message (Collapse)Author
2021-05-07Define with-file and with-data-file sc macros.Arun Isaac
* src/macros/macros.sc (with-file, with-data-file): New macros.
2021-05-07Move with-rstats and define with-rstats* sc macros.Arun Isaac
* src/extent-sampling.sc (with-rstats): Move to ... * src/macros/macros.sc (with-rstats): ... to here. (with-rstats*): New macro.
2021-05-07Define with-rng sc macro.Arun Isaac
* src/macros/macros.sc (with-rng): New macro.
2021-05-07Move with-vector to macros.sc.Arun Isaac
* src/extent-sampling.sc (with-vector): Move to ... * src/macros/macros.sc (with-vector): ... here.
2021-05-07Define for-i-step sc macro.Arun Isaac
* src/macros/macros.sc (for-i-step): New macro.
2021-05-07Define when and unless sc macros.Arun Isaac
* src/macros/macros.sc (when, unless): New macros.
2021-02-26Add copyright and license headers for all files.Arun Isaac
* include/extent-sampling.h, include/gaussian-nd-random.h, include/integrands.h, include/nd-random.h, include/oracles.h, include/utils.h, src/extent-sampling.sc, src/gaussian-nd-random.sc, src/integrands.sc, src/macros/macros.sc, src/nd-random.sc, src/oracles.sc, src/utils.sc, CMakeLists.txt, pre-inst-env.in: Add copyright and license headers.
2021-02-05Use let* instead of declare and set.Arun Isaac
* src/macros/macros.sc (with-alloc): Use let* instead of declare and set.
2021-02-05Migrate C source to SC.Arun Isaac
sph-sc is a scheme-like S-expression syntax for C. It elements much of the pain and repetition involved in writing C syntax. * src/extent-sampling.c, src/gaussian-nd-random.c, src/nd-random.c, src/oracles.c, src/utils.c: Delete files. * src/extent-sampling.sc, src/gaussian-nd-random.sc, src/macros/macros.sc, src/nd-random.sc, src/oracles.sc, src/utils.sc: New files. * CMakeLists.txt: Generate C source files from SC source files.