gcem
« Back to VersTracker
Description:
C++ compile-time math library
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ constexpr math header-only compile-time
Install: brew install gcem
About:
GCEM is a header-only C++ library that provides a suite of compile-time mathematical functions. It enables developers to perform complex calculations during compilation, eliminating runtime overhead and ensuring constant expressions. This library is ideal for performance-critical applications and embedded systems where computational resources are limited.
Key Features:
  • Header-only library with no external dependencies
  • Fully constexpr implementations of standard math functions
  • Compliant with C++11/14/17 standards
  • Comprehensive set of functions including trigonometric, exponential, and special functions
Use Cases:
  • Embedded systems development requiring deterministic computation
  • High-performance computing where runtime overhead must be minimized
  • Template metaprogramming and compile-time algorithm optimization
Alternatives:
  • Boost.Multiprecision – Provides arbitrary precision arithmetic but is heavier and not solely focused on constexpr math
  • Standard Library <cmath> – Runtime-only functions; GCEM provides compile-time equivalents
Version History
Detected Version Rev Change Commit
Oct 27, 2024 3:46pm 0 VERSION_BUMP de4d4f15