Граф коммитов

79 Коммитов

Автор SHA1 Сообщение Дата
Karl Tomlinson ff49201f0f Bug 1358149 use fdlibm for inexact math functions in ffvpx/libavcodec r=padenot,firefox-build-system-reviewers,glandium
This includes the rdft FFT implementation.

Differential Revision: https://phabricator.services.mozilla.com/D185781
2023-08-10 19:46:05 +00:00
Karl Tomlinson 627a48669f Bug 1358149 add a header to substitute fdlibm math functions for inexact system library functions r=arai
This provides a way to use fdlibm from third party C code without
modification, such as media/ffvpx, which is regularly updated and so this
avoids patching the vendored library.

Differential Revision: https://phabricator.services.mozilla.com/D185780
2023-08-10 19:46:05 +00:00
Karl Tomlinson d7103695d6 Bug 1358149 add log10f and hypotf from fdlibm r=arai
These operations are used from dom/media/webaudio.

Differential Revision: https://phabricator.services.mozilla.com/D185779
2023-08-10 11:16:39 +00:00
Karl Tomlinson e618709657 Bug 1358149 use C language linkage for public fdlibm functions r=arai
Differential Revision: https://phabricator.services.mozilla.com/D185778
2023-08-10 08:29:58 +00:00
Karl Tomlinson f3a72d6d5a Bug 1358149 use prefix instead of namespace for fdlibm function names r=arai
This will facilitate making the functions available to C code.

Differential Revision: https://phabricator.services.mozilla.com/D185777
2023-08-10 06:55:30 +00:00
Tooru Fujisawa e47a6ae649 Bug 1847899 - Fix fdlibm patch. r=mgaudet DONTBUILD
Depends on D185792

Differential Revision: https://phabricator.services.mozilla.com/D185793
2023-08-09 21:50:54 +00:00
Tom Ritter 65956c76e1 Bug 1760633: Apply the fdlibm patches for the new files to the in-tree files r=arai
This updates our previously in-tree files to account for the
new files we added.

Differential Revision: https://phabricator.services.mozilla.com/D164818
2023-01-06 20:12:33 +00:00
Tom Ritter ecb85f50cf Bug 1760633: Actually add the new fdlibm files and apply the patches r=arai
This applies the patches to the new files, but not the existing
in-tree files (fdlibm.h and math_private.h)

Differential Revision: https://phabricator.services.mozilla.com/D164817
2023-01-06 20:12:33 +00:00
Tom Ritter b674b7a1fb Bug 1760633: Update fdlibm patches to apply to new files r=arai
Differential Revision: https://phabricator.services.mozilla.com/D164816
2023-01-06 20:12:32 +00:00
Stanca Serban 94f1cf5515 Backed out 3 changesets (bug 1760633) for causing Spidermonkey bustages. CLOSED TREE
Backed out changeset 527f857a91f8 (bug 1760633)
Backed out changeset ee8ecdac4be5 (bug 1760633)
Backed out changeset addec3dc0f80 (bug 1760633)
2023-01-06 17:21:52 +02:00
Tom Ritter 43336c5845 Bug 1760633: Apply the fdlibm patches for the new files to the in-tree files r=arai
This updates our previously in-tree files to account for the
new files we added.

Differential Revision: https://phabricator.services.mozilla.com/D164818
2023-01-06 14:49:14 +00:00
Tom Ritter 66f8d0fe4c Bug 1760633: Actually add the new fdlibm files and apply the patches r=arai
This applies the patches to the new files, but not the existing
in-tree files (fdlibm.h and math_private.h)

Differential Revision: https://phabricator.services.mozilla.com/D164817
2023-01-06 14:49:13 +00:00
Tom Ritter 3873f32406 Bug 1760633: Update fdlibm patches to apply to new files r=arai
Differential Revision: https://phabricator.services.mozilla.com/D164816
2023-01-06 14:49:13 +00:00
Tom Ritter e867171bc9 Bug 1760633: Add new files to fdlibm's moz.yaml r=arai
Differential Revision: https://phabricator.services.mozilla.com/D164815
2023-01-06 03:10:46 +00:00
Tom Ritter bec1a99cde Bug 1804298: Update the fdlibm patches to be vendored by mach vendor r=arai
For mach vendor, patches are relative to the directory the
third party code is vendored into.

Differential Revision: https://phabricator.services.mozilla.com/D163971
2022-12-07 18:08:14 +00:00
Tom Ritter ead4517cc3 Bug 1804298: Add a moz.yaml for fdlibm and make it vendor-able r=arai
Remove the old update scripts so we can use ./mach vendor
to vendor it.

Differential Revision: https://phabricator.services.mozilla.com/D163970
2022-12-07 18:08:13 +00:00
Adrien Champion 1b0bb96c6a Bug 1801894 - `modules/fdlibm`: remove dead file. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D163313
2022-11-30 16:10:25 +00:00
Tooru Fujisawa 6d6b4cf34d Bug 1789560 - Do not define unused float_t type in fdlibm. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D157540
2022-10-11 03:56:16 +00:00
Tooru Fujisawa 2260a5120e Bug 1595259 - Part 3: Update fdlibm to 369ea0520a3061c07400d7cd32172efb6af39815. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154079
2022-08-10 07:00:31 +00:00
Tooru Fujisawa b70dbe55b7 Bug 1595259 - Part 2: Update patches. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154078
2022-08-10 07:00:31 +00:00
Tooru Fujisawa 925004d845 Bug 1595259 - Part 1: Use python3 in modules/fdlibm/update.sh. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154077
2022-08-10 07:00:30 +00:00
Sandor Molnar 519b18befe Backed out 3 changesets (bug 1595259) for causing build bustages. CLOSED TREE
Backed out changeset b9f69ae62997 (bug 1595259)
Backed out changeset 313d7588e499 (bug 1595259)
Backed out changeset 3de1cc55fdbb (bug 1595259)
2022-08-09 20:51:28 +03:00
Tooru Fujisawa b010a15625 Bug 1595259 - Part 3: Update fdlibm to 369ea0520a3061c07400d7cd32172efb6af39815. r=mgaudet
Depends on D154078

Differential Revision: https://phabricator.services.mozilla.com/D154079
2022-08-09 16:09:57 +00:00
Tooru Fujisawa a0ad1d3f81 Bug 1595259 - Part 2: Update patches. r=mgaudet
Depends on D154077

Differential Revision: https://phabricator.services.mozilla.com/D154078
2022-08-09 16:09:56 +00:00
Tooru Fujisawa c4405ed5dc Bug 1595259 - Part 1: Use python3 in modules/fdlibm/update.sh. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154077
2022-08-09 16:09:56 +00:00
sanketh 84f294db2b Bug 531915 - part 5 - build and export sin, cos, and tan from fdlibm r=arai
Differential Revision: https://phabricator.services.mozilla.com/D119425
2021-08-13 11:57:06 +00:00
sanketh 3fe5fa4059 Bug 531915 - part 4 - rem pio2 fixups r=arai
Differential Revision: https://phabricator.services.mozilla.com/D119424
2021-08-13 11:57:06 +00:00
sanketh 6ce4ce9c3b Bug 531915 - part 3 - add back needed rounding helpers and emulate freebsd internal double types ?tjr r=arai
Differential Revision: https://phabricator.services.mozilla.com/D119423
2021-08-13 11:57:06 +00:00
sanketh 2c782c8089 Bug 531915 - part 2 - update fdlibm local patches 4, 8, and 9 r=arai
Differential Revision: https://phabricator.services.mozilla.com/D119422
2021-08-13 11:57:05 +00:00
sanketh 8d898c13b9 Bug 531915 - part 1 - update fdlibm to import files needed for sin, cos, and tan r=arai
Differential Revision: https://phabricator.services.mozilla.com/D119420
2021-08-13 11:57:05 +00:00
Iulian Moraru 538f123b07 Backed out 6 changesets (bug 531915) for causing build bustages. CLOSED TREE
Backed out changeset 65cf5929d5f2 (bug 531915)
Backed out changeset c9d70e46dfca (bug 531915)
Backed out changeset a4824d5f29fd (bug 531915)
Backed out changeset 9ec88b43d7a1 (bug 531915)
Backed out changeset 5f15204ccca9 (bug 531915)
Backed out changeset 14c95ef3dc44 (bug 531915)
2021-08-12 13:33:31 +03:00
sanketh 468c33c7ab Bug 531915 - part 5 - build and export sin, cos, and tan from fdlibm r=arai
Differential Revision: https://phabricator.services.mozilla.com/D119425
2021-08-12 09:59:02 +00:00
sanketh 707e44ec4c Bug 531915 - part 4 - rem pio2 fixups r=arai
Differential Revision: https://phabricator.services.mozilla.com/D119424
2021-08-12 09:59:02 +00:00
sanketh 8dc9e8a52f Bug 531915 - part 3 - add back needed rounding helpers and emulate freebsd internal double types ?tjr r=arai
Differential Revision: https://phabricator.services.mozilla.com/D119423
2021-08-12 09:59:02 +00:00
sanketh 474a039e5c Bug 531915 - part 2 - update fdlibm local patches 4, 8, and 9 r=arai
Differential Revision: https://phabricator.services.mozilla.com/D119422
2021-08-12 09:59:01 +00:00
sanketh 5887beb7b8 Bug 531915 - part 1 - update fdlibm to import files needed for sin, cos, and tan r=arai
Differential Revision: https://phabricator.services.mozilla.com/D119420
2021-08-12 09:59:01 +00:00
Chris Fallin c0d9956b61 Bug 1701885 part 6 - Fix signals for WASI. r=jandem,wingo
WASI lacks of the signals support yet, so this patch stubs out
uses of signals for WASI.

Differential Revision: https://phabricator.services.mozilla.com/D110216
2021-04-20 05:15:28 +00:00
Jeff Walden e57173377f Bug 1439659 - Make |MOZ_{LITTLE,BIG}_ENDIAN| into function macros so that invoking them inside |#if| conditions when they haven't been defined yet is a compile error. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D57038

--HG--
extra : moz-landing-system : lando
2019-12-13 20:51:04 +00:00
Jeff Walden ac5904852e Bug 1583958 - Update our fdlibm import to upstream rev cf4707bb2f78ecf56ba350bdc24e3135b4339622, adjusting local patchwork as necessary for changes upstream's made since last import. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D47186

--HG--
extra : moz-landing-system : lando
2019-09-26 07:07:16 +00:00
Ciure Andrei d14974ca63 Backed out changeset 62e38ee5dd16 (bug 1583958) for causing build bustages CLOSED TREE 2019-09-26 02:41:24 +03:00
Jeff Walden 25fcb2454a Bug 1583958 - Update our fdlibm import to upstream rev cf4707bb2f78ecf56ba350bdc24e3135b4339622, adjusting local patchwork as necessary for changes upstream's made since last import. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D47186

--HG--
extra : moz-landing-system : lando
2019-09-25 23:27:02 +00:00
André Bargull 1ce1fec25f Bug 1564117 - Part 2: Allow to reimport a specific fdlibm commit. r=arai
This makes it easier to test if modified patch files still apply.

Additionally "--no-backup-if-mismatch" was added to the `patch` command to
avoid generating ".orig" files.

Depends on D37256

Differential Revision: https://phabricator.services.mozilla.com/D37257

--HG--
extra : moz-landing-system : lando
2019-07-08 16:52:47 +00:00
André Bargull eebb17f171 Bug 1564117 - Part 1: Use std::sqrt in fdlibm. r=arai
std::sqrt is guaranteed to have an error less than 0.5 ulp, so there's no need
to use fdlibm's slower implementation.

Differential Revision: https://phabricator.services.mozilla.com/D37256

--HG--
extra : moz-landing-system : lando
2019-07-08 16:52:45 +00:00
André Bargull 24bb28b814 Bug 1380031: Ensure Math.exp(1) returns Math.E. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D24354

--HG--
extra : moz-landing-system : lando
2019-03-25 09:15:27 +00:00
David Major 56ea434680 Bug 1528074 - Translate MSVC warning flags to clang spelling where supported r=froydnj
clang-cl only acts on five MSVC warning flags: 7219c7e9af/clang/include/clang/Driver/CLCompatOptions.td (L188-L197)

With MSVC now unsupported, most -wdNNNN have no effect and can be removed.

This patch converts the five supported warnings to their clang spellings, as preparation for a subsequent patch that will remove all remaining `[/-]w[edo][0-9]{4}`.

Differential Revision: https://phabricator.services.mozilla.com/D22582

--HG--
extra : moz-landing-system : lando
2019-03-11 01:39:42 +00:00
Mike Hommey ef3ad686ee Bug 1512504 - Remove support for MSVC. r=froydnj
Consequently, this removes:
- MOZ_LIBPRIO, which is now always enabled.
- non_msvc_compiler, which is now always true.
- The cl.py wrapper, since it's not used anymore.
- CL_INCLUDES_PREFIX, which was only used for the cl.py wrapper.
- NONASCII, which was only there to ensure CL_INCLUDES_PREFIX still
  worked in non-ASCII cases.

This however keeps a large part of detecting and configuring for MSVC,
because we still do need it for at least headers, libraries, and midl.

Depends on D19614

Differential Revision: https://phabricator.services.mozilla.com/D19615

--HG--
extra : moz-landing-system : lando
2019-02-14 21:45:27 +00:00
David Major d8d830c2dd Bug 1520647: Add a comment explaining why fdlibm sources can't be unified. DONTBUILD 2019-01-18 21:28:18 -05:00
Tooru Fujisawa dc9e1f8ab9 Bug 1438599 - Part 2: Import fdlibm from FreeBSD (revision b21ccf63f28a3a4692d8a31419e0a725a1b1a800). r=jwalden 2018-02-18 22:56:46 +09:00
Tooru Fujisawa cacb9bf19b Bug 1438599 - Part 1: Rebase local patches for fdlibm. r=jwalden 2018-02-18 22:56:38 +09:00
Tooru Fujisawa 777d46a71e Bug 1438599 - Part 0: Echo the applying patch in fdlibm update script. r=jwalden 2018-02-18 22:56:29 +09:00