commit | 2b0536114f3871586403aa731385dcf37a0f6cf1 | [log] [tgz] |
---|---|---|
author | global-integration-roller <global-integration-roller@fuchsia.infra.roller.fuchsia-infra.iam.gserviceaccount.com> | Tue Nov 07 01:43:19 2023 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Nov 06 17:46:09 2023 -0800 |
tree | 79c2d4f2446878117e816a599447c98a24984b07 | |
parent | 6037ea2e4179898d0f6dda17b638bf9d50ba4055 [diff] |
[roll] Roll fuchsia [superproject] Roll llvm-project/libc [libc][math] Implement powf function correctly rounded to all rounding modes. (#71188) 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 ``` GitOrigin-RevId: b76c517b54c3a0122870ee2c5593c75eea3eb10b Original-Revision: bfcf18edd8508218e352268d47beb679fc03deab Roller-URL: https://ci.chromium.org/b/8765126421919829921 CQ-Do-Not-Cancel-Tryjobs: true Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/940985 Original-Revision: dfd28c985f20e3e3b27f851714fad34af48fb237 Change-Id: Id4082c0626b5d147166903f8e5b1ca390813db59
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia
on Freenode.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party
.