Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

C macro that computes binominal coefficient at compile time

Awesome Lists containing this project

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/)