\( % Arcus cosine. \def\acos{\cos^{-1}} % Vector projection. \def\projection#1#2{{proj_{#1}\left(#2\right)}} % Vector rejection. \def\rejection#1#2{{rej_{#1}\left(#2\right)}} % Norm. \def\norm#1{{\left\|#1\right\|}} % Cross product. \def\cross#1#2{\mathit{cross}\left(#1,#2\right)} % Dot product. \def\dot#1#2{{#1 \cdot #2}} % Magnitude. \def\mag#1{{\left|#1\right}} \def\group#1{\left(#1\right)}} \def\sbgrp#1{\left\{#1\right\}} \)

Overview

The Intrinsic library provides intrinsic functions and macros:

  • Get next power of two greater than or equal a given integer value.
  • Get the next multiple of 32 or 64 greater than or equal to a integer given value.
  • Safely compute the sums, the products, and the differences of integers.
  • Macros for guiding the compiler's diagnostics and optimizations.

The Intrinsic library fulfils the module concept but does not require initialization.

The include file of the Intrinsic library is Ring1/Hash.h, its library file is Ring1.lib.

Sources and references

The reference repository provides non-authoritive sample implementations.