https://github.com/kcning/binom
C macro that computes binominal coefficient at compile time
https://github.com/kcning/binom
binominal-coefficient c macro preprocessor recursion
Last synced: 5 months ago
JSON representation
C macro that computes binominal coefficient at compile time
- Host: GitHub
- URL: https://github.com/kcning/binom
- Owner: kcning
- License: mit
- Created: 2017-04-10T14:55:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-26T09:13:57.000Z (over 8 years ago)
- Last Synced: 2024-02-17T10:37:09.952Z (almost 2 years ago)
- Topics: binominal-coefficient, c, macro, preprocessor, recursion
- Language: C
- Homepage:
- Size: 1.5 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-c-preprocessor - `kcning/binom` - - C macro that computes binominal coefficient at compile time. (Other projects)
README
BINOM
=====
BINOM is a macro that computes binominal coefficient at compile time. This
macro is not meant to be used in practice because of slow speed of recursive
macro.
Nevertheless, it shows the capability of C preprocessor and isn't
it cool? ;)
BINOM is inspired by the following material:
1. [Cloak](https://github.com/pfultz2/Cloak)
2. [C/C++ preprocessor metaprogramming](http://saadahmad.ca/cc-preprocessor-metaprogramming-2/)