mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-11 17:08:42 +00:00
bc7a3bd864
We compute `pow(x, y)` using the formula ``` pow(x, y) = x^y = 2^(y * log2(x)) ``` We follow similar steps as in `log2f(x)` and `exp2f(x)`, by breaking down into `hi + mid + lo` parts, in which `hi` parts are computed using the exponent field directly, `mid` parts will use look-up tables, and `lo` parts are approximated by polynomials. We add some speedup for common use-cases: ``` pow(2, y) = exp2(y) pow(10, y) = exp10(y) pow(x, 2) = x * x pow(x, 1/2) = sqrt(x) pow(x, -1/2) = rsqrt(x) - to be added ``` |
||
---|---|---|
.. | ||
_static | ||
dev | ||
gpu | ||
math | ||
build_and_test.rst | ||
check.rst | ||
CMakeLists.txt | ||
compiler_support.rst | ||
conf.py | ||
configure.rst | ||
contributing.rst | ||
date_and_time.rst | ||
full_cross_build.rst | ||
full_host_build.rst | ||
fullbuild_mode.rst | ||
header_gen_scheme.svg | ||
index.rst | ||
overlay_mode.rst | ||
porting.rst | ||
README.txt | ||
stdio.rst | ||
strings.rst | ||
usage_modes.rst |
libc Documentation ================== The libc documentation is written using the Sphinx documentation generator. It is currently tested with Sphinx 1.1.3. To build the documents into html configure libc with the following cmake options: * -DLLVM_ENABLE_SPHINX=ON * -DLIBC_INCLUDE_DOCS=ON After configuring libc with these options the make rule `docs-libc-html` should be available.