C code implementing our GCL entropy computation in optimised form. Packaged as a mathematical function.