diff --git a/library/compiler-builtins/libm/crates/libm-macros/Cargo.toml b/library/compiler-builtins/crates/libm-macros/Cargo.toml similarity index 100% rename from library/compiler-builtins/libm/crates/libm-macros/Cargo.toml rename to library/compiler-builtins/crates/libm-macros/Cargo.toml diff --git a/library/compiler-builtins/libm/crates/libm-macros/src/enums.rs b/library/compiler-builtins/crates/libm-macros/src/enums.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-macros/src/enums.rs rename to library/compiler-builtins/crates/libm-macros/src/enums.rs diff --git a/library/compiler-builtins/libm/crates/libm-macros/src/lib.rs b/library/compiler-builtins/crates/libm-macros/src/lib.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-macros/src/lib.rs rename to library/compiler-builtins/crates/libm-macros/src/lib.rs diff --git a/library/compiler-builtins/libm/crates/libm-macros/src/parse.rs b/library/compiler-builtins/crates/libm-macros/src/parse.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-macros/src/parse.rs rename to library/compiler-builtins/crates/libm-macros/src/parse.rs diff --git a/library/compiler-builtins/libm/crates/libm-macros/src/shared.rs b/library/compiler-builtins/crates/libm-macros/src/shared.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-macros/src/shared.rs rename to library/compiler-builtins/crates/libm-macros/src/shared.rs diff --git a/library/compiler-builtins/libm/crates/libm-macros/tests/basic.rs b/library/compiler-builtins/crates/libm-macros/tests/basic.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-macros/tests/basic.rs rename to library/compiler-builtins/crates/libm-macros/tests/basic.rs diff --git a/library/compiler-builtins/libm/crates/libm-macros/tests/enum.rs b/library/compiler-builtins/crates/libm-macros/tests/enum.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-macros/tests/enum.rs rename to library/compiler-builtins/crates/libm-macros/tests/enum.rs diff --git a/library/compiler-builtins/libm/crates/musl-math-sys/Cargo.toml b/library/compiler-builtins/crates/musl-math-sys/Cargo.toml similarity index 100% rename from library/compiler-builtins/libm/crates/musl-math-sys/Cargo.toml rename to library/compiler-builtins/crates/musl-math-sys/Cargo.toml diff --git a/library/compiler-builtins/libm/crates/musl-math-sys/build.rs b/library/compiler-builtins/crates/musl-math-sys/build.rs similarity index 100% rename from library/compiler-builtins/libm/crates/musl-math-sys/build.rs rename to library/compiler-builtins/crates/musl-math-sys/build.rs diff --git a/library/compiler-builtins/libm/crates/musl-math-sys/c_patches/alias.c b/library/compiler-builtins/crates/musl-math-sys/c_patches/alias.c similarity index 100% rename from library/compiler-builtins/libm/crates/musl-math-sys/c_patches/alias.c rename to library/compiler-builtins/crates/musl-math-sys/c_patches/alias.c diff --git a/library/compiler-builtins/libm/crates/musl-math-sys/c_patches/features.h b/library/compiler-builtins/crates/musl-math-sys/c_patches/features.h similarity index 100% rename from library/compiler-builtins/libm/crates/musl-math-sys/c_patches/features.h rename to library/compiler-builtins/crates/musl-math-sys/c_patches/features.h diff --git a/library/compiler-builtins/libm/crates/musl-math-sys/src/lib.rs b/library/compiler-builtins/crates/musl-math-sys/src/lib.rs similarity index 100% rename from library/compiler-builtins/libm/crates/musl-math-sys/src/lib.rs rename to library/compiler-builtins/crates/musl-math-sys/src/lib.rs diff --git a/library/compiler-builtins/libm/crates/util/Cargo.toml b/library/compiler-builtins/crates/util/Cargo.toml similarity index 100% rename from library/compiler-builtins/libm/crates/util/Cargo.toml rename to library/compiler-builtins/crates/util/Cargo.toml diff --git a/library/compiler-builtins/libm/crates/util/build.rs b/library/compiler-builtins/crates/util/build.rs similarity index 100% rename from library/compiler-builtins/libm/crates/util/build.rs rename to library/compiler-builtins/crates/util/build.rs diff --git a/library/compiler-builtins/libm/crates/util/src/main.rs b/library/compiler-builtins/crates/util/src/main.rs similarity index 100% rename from library/compiler-builtins/libm/crates/util/src/main.rs rename to library/compiler-builtins/crates/util/src/main.rs diff --git a/library/compiler-builtins/libm/etc/function-definitions.json b/library/compiler-builtins/etc/function-definitions.json similarity index 100% rename from library/compiler-builtins/libm/etc/function-definitions.json rename to library/compiler-builtins/etc/function-definitions.json diff --git a/library/compiler-builtins/libm/etc/function-list.txt b/library/compiler-builtins/etc/function-list.txt similarity index 100% rename from library/compiler-builtins/libm/etc/function-list.txt rename to library/compiler-builtins/etc/function-list.txt diff --git a/library/compiler-builtins/libm/.editorconfig b/library/compiler-builtins/etc/libm/.editorconfig similarity index 100% rename from library/compiler-builtins/libm/.editorconfig rename to library/compiler-builtins/etc/libm/.editorconfig diff --git a/library/compiler-builtins/libm/.github/workflows/main.yaml b/library/compiler-builtins/etc/libm/.github/workflows/main.yaml similarity index 100% rename from library/compiler-builtins/libm/.github/workflows/main.yaml rename to library/compiler-builtins/etc/libm/.github/workflows/main.yaml diff --git a/library/compiler-builtins/libm/.github/workflows/publish.yaml b/library/compiler-builtins/etc/libm/.github/workflows/publish.yaml similarity index 100% rename from library/compiler-builtins/libm/.github/workflows/publish.yaml rename to library/compiler-builtins/etc/libm/.github/workflows/publish.yaml diff --git a/library/compiler-builtins/libm/.gitignore b/library/compiler-builtins/etc/libm/.gitignore similarity index 100% rename from library/compiler-builtins/libm/.gitignore rename to library/compiler-builtins/etc/libm/.gitignore diff --git a/library/compiler-builtins/libm/Cargo.toml b/library/compiler-builtins/etc/libm/Cargo.toml similarity index 100% rename from library/compiler-builtins/libm/Cargo.toml rename to library/compiler-builtins/etc/libm/Cargo.toml diff --git a/library/compiler-builtins/libm/ci/bench-icount.sh b/library/compiler-builtins/etc/libm/ci/bench-icount.sh similarity index 100% rename from library/compiler-builtins/libm/ci/bench-icount.sh rename to library/compiler-builtins/etc/libm/ci/bench-icount.sh diff --git a/library/compiler-builtins/libm/ci/ci-util.py b/library/compiler-builtins/etc/libm/ci/ci-util.py similarity index 100% rename from library/compiler-builtins/libm/ci/ci-util.py rename to library/compiler-builtins/etc/libm/ci/ci-util.py diff --git a/library/compiler-builtins/libm/ci/docker/aarch64-unknown-linux-gnu/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/aarch64-unknown-linux-gnu/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/aarch64-unknown-linux-gnu/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/aarch64-unknown-linux-gnu/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/arm-unknown-linux-gnueabi/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/arm-unknown-linux-gnueabi/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/arm-unknown-linux-gnueabi/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/arm-unknown-linux-gnueabi/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/i586-unknown-linux-gnu/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/i586-unknown-linux-gnu/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/i586-unknown-linux-gnu/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/i586-unknown-linux-gnu/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/i686-unknown-linux-gnu/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/i686-unknown-linux-gnu/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/i686-unknown-linux-gnu/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/i686-unknown-linux-gnu/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/loongarch64-unknown-linux-gnu/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/loongarch64-unknown-linux-gnu/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/loongarch64-unknown-linux-gnu/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/loongarch64-unknown-linux-gnu/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/mips-unknown-linux-gnu/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/mips-unknown-linux-gnu/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/mips-unknown-linux-gnu/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/mips-unknown-linux-gnu/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/mipsel-unknown-linux-gnu/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/mipsel-unknown-linux-gnu/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/mipsel-unknown-linux-gnu/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/mipsel-unknown-linux-gnu/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/powerpc-unknown-linux-gnu/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/powerpc-unknown-linux-gnu/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/powerpc-unknown-linux-gnu/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/powerpc-unknown-linux-gnu/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/thumbv6m-none-eabi/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/thumbv6m-none-eabi/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/thumbv6m-none-eabi/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/thumbv6m-none-eabi/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/thumbv7em-none-eabi/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/thumbv7em-none-eabi/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/thumbv7em-none-eabi/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/thumbv7em-none-eabi/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/thumbv7em-none-eabihf/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/thumbv7em-none-eabihf/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/thumbv7em-none-eabihf/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/thumbv7em-none-eabihf/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/thumbv7m-none-eabi/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/thumbv7m-none-eabi/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/thumbv7m-none-eabi/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/thumbv7m-none-eabi/Dockerfile diff --git a/library/compiler-builtins/libm/ci/docker/x86_64-unknown-linux-gnu/Dockerfile b/library/compiler-builtins/etc/libm/ci/docker/x86_64-unknown-linux-gnu/Dockerfile similarity index 100% rename from library/compiler-builtins/libm/ci/docker/x86_64-unknown-linux-gnu/Dockerfile rename to library/compiler-builtins/etc/libm/ci/docker/x86_64-unknown-linux-gnu/Dockerfile diff --git a/library/compiler-builtins/libm/ci/run-docker.sh b/library/compiler-builtins/etc/libm/ci/run-docker.sh similarity index 100% rename from library/compiler-builtins/libm/ci/run-docker.sh rename to library/compiler-builtins/etc/libm/ci/run-docker.sh diff --git a/library/compiler-builtins/libm/ci/run.sh b/library/compiler-builtins/etc/libm/ci/run.sh similarity index 100% rename from library/compiler-builtins/libm/ci/run.sh rename to library/compiler-builtins/etc/libm/ci/run.sh diff --git a/library/compiler-builtins/libm/etc/update-api-list.py b/library/compiler-builtins/etc/update-api-list.py similarity index 100% rename from library/compiler-builtins/libm/etc/update-api-list.py rename to library/compiler-builtins/etc/update-api-list.py diff --git a/library/compiler-builtins/libm/crates/libm-test/Cargo.toml b/library/compiler-builtins/libm-test/Cargo.toml similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/Cargo.toml rename to library/compiler-builtins/libm-test/Cargo.toml diff --git a/library/compiler-builtins/libm/crates/libm-test/benches/icount.rs b/library/compiler-builtins/libm-test/benches/icount.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/benches/icount.rs rename to library/compiler-builtins/libm-test/benches/icount.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/benches/random.rs b/library/compiler-builtins/libm-test/benches/random.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/benches/random.rs rename to library/compiler-builtins/libm-test/benches/random.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/build.rs b/library/compiler-builtins/libm-test/build.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/build.rs rename to library/compiler-builtins/libm-test/build.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/examples/plot_domains.rs b/library/compiler-builtins/libm-test/examples/plot_domains.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/examples/plot_domains.rs rename to library/compiler-builtins/libm-test/examples/plot_domains.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/examples/plot_file.jl b/library/compiler-builtins/libm-test/examples/plot_file.jl similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/examples/plot_file.jl rename to library/compiler-builtins/libm-test/examples/plot_file.jl diff --git a/library/compiler-builtins/libm/crates/libm-test/src/domain.rs b/library/compiler-builtins/libm-test/src/domain.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/domain.rs rename to library/compiler-builtins/libm-test/src/domain.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/f8_impl.rs b/library/compiler-builtins/libm-test/src/f8_impl.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/f8_impl.rs rename to library/compiler-builtins/libm-test/src/f8_impl.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/generate.rs b/library/compiler-builtins/libm-test/src/generate.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/generate.rs rename to library/compiler-builtins/libm-test/src/generate.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/generate/case_list.rs b/library/compiler-builtins/libm-test/src/generate/case_list.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/generate/case_list.rs rename to library/compiler-builtins/libm-test/src/generate/case_list.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/generate/edge_cases.rs b/library/compiler-builtins/libm-test/src/generate/edge_cases.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/generate/edge_cases.rs rename to library/compiler-builtins/libm-test/src/generate/edge_cases.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/generate/random.rs b/library/compiler-builtins/libm-test/src/generate/random.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/generate/random.rs rename to library/compiler-builtins/libm-test/src/generate/random.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/generate/spaced.rs b/library/compiler-builtins/libm-test/src/generate/spaced.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/generate/spaced.rs rename to library/compiler-builtins/libm-test/src/generate/spaced.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/lib.rs b/library/compiler-builtins/libm-test/src/lib.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/lib.rs rename to library/compiler-builtins/libm-test/src/lib.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/mpfloat.rs b/library/compiler-builtins/libm-test/src/mpfloat.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/mpfloat.rs rename to library/compiler-builtins/libm-test/src/mpfloat.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/num.rs b/library/compiler-builtins/libm-test/src/num.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/num.rs rename to library/compiler-builtins/libm-test/src/num.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/op.rs b/library/compiler-builtins/libm-test/src/op.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/op.rs rename to library/compiler-builtins/libm-test/src/op.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/precision.rs b/library/compiler-builtins/libm-test/src/precision.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/precision.rs rename to library/compiler-builtins/libm-test/src/precision.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/run_cfg.rs b/library/compiler-builtins/libm-test/src/run_cfg.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/run_cfg.rs rename to library/compiler-builtins/libm-test/src/run_cfg.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/src/test_traits.rs b/library/compiler-builtins/libm-test/src/test_traits.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/src/test_traits.rs rename to library/compiler-builtins/libm-test/src/test_traits.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/tests/check_coverage.rs b/library/compiler-builtins/libm-test/tests/check_coverage.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/tests/check_coverage.rs rename to library/compiler-builtins/libm-test/tests/check_coverage.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/tests/compare_built_musl.rs b/library/compiler-builtins/libm-test/tests/compare_built_musl.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/tests/compare_built_musl.rs rename to library/compiler-builtins/libm-test/tests/compare_built_musl.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/tests/multiprecision.rs b/library/compiler-builtins/libm-test/tests/multiprecision.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/tests/multiprecision.rs rename to library/compiler-builtins/libm-test/tests/multiprecision.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/tests/standalone.rs b/library/compiler-builtins/libm-test/tests/standalone.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/tests/standalone.rs rename to library/compiler-builtins/libm-test/tests/standalone.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/tests/u256.rs b/library/compiler-builtins/libm-test/tests/u256.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/tests/u256.rs rename to library/compiler-builtins/libm-test/tests/u256.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/tests/z_extensive/main.rs b/library/compiler-builtins/libm-test/tests/z_extensive/main.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/tests/z_extensive/main.rs rename to library/compiler-builtins/libm-test/tests/z_extensive/main.rs diff --git a/library/compiler-builtins/libm/crates/libm-test/tests/z_extensive/run.rs b/library/compiler-builtins/libm-test/tests/z_extensive/run.rs similarity index 100% rename from library/compiler-builtins/libm/crates/libm-test/tests/z_extensive/run.rs rename to library/compiler-builtins/libm-test/tests/z_extensive/run.rs diff --git a/library/compiler-builtins/libm/LICENSE.txt b/library/compiler-builtins/libm/LICENSE.txt deleted file mode 100644 index 2f8e41f14747..000000000000 --- a/library/compiler-builtins/libm/LICENSE.txt +++ /dev/null @@ -1,258 +0,0 @@ -rust-lang/libm as a whole is available for use under the MIT license: - ------------------------------------------------------------------------------- -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. ------------------------------------------------------------------------------- - -As a contributor, you agree that your code can be used under either the MIT -license or the Apache-2.0 license: - ------------------------------------------------------------------------------- - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ------------------------------------------------------------------------------- - -This Rust library contains the following copyrights: - - Copyright (c) 2018 Jorge Aparicio - -Portions of this software are derived from third-party works licensed under -terms compatible with the above MIT license: - -* musl libc https://www.musl-libc.org/. This library contains the following - copyright: - - Copyright © 2005-2020 Rich Felker, et al. - -* The CORE-MATH project https://core-math.gitlabpages.inria.fr/. CORE-MATH - routines are available under the MIT license on a per-file basis. - -The musl libc COPYRIGHT file also includes the following notice relevant to -math portions of the library: - ------------------------------------------------------------------------------- -Much of the math library code (src/math/* and src/complex/*) is -Copyright © 1993,2004 Sun Microsystems or -Copyright © 2003-2011 David Schultz or -Copyright © 2003-2009 Steven G. Kargl or -Copyright © 2003-2009 Bruce D. Evans or -Copyright © 2008 Stephen L. Moshier or -Copyright © 2017-2018 Arm Limited -and labelled as such in comments in the individual source files. All -have been licensed under extremely permissive terms. ------------------------------------------------------------------------------- - -Copyright notices are retained in src/* files where relevant. diff --git a/library/compiler-builtins/libm/README.md b/library/compiler-builtins/libm/README.md deleted file mode 100644 index 52d760a4f159..000000000000 --- a/library/compiler-builtins/libm/README.md +++ /dev/null @@ -1,56 +0,0 @@ -# `libm` - -A port of [MUSL]'s libm to Rust. - -[MUSL]: https://musl.libc.org/ - -## Goals - -The short term goal of this library is to [enable math support (e.g. `sin`, `atan2`) for the -`wasm32-unknown-unknown` target][wasm] (cf. [rust-lang/compiler-builtins][pr]). The longer -term goal is to enable [math support in the `core` crate][core]. - -[wasm]: https://github.com/rust-lang/libm/milestone/1 -[pr]: https://github.com/rust-lang/compiler-builtins/pull/248 -[core]: https://github.com/rust-lang/libm/milestone/2 - -## Already usable - -This crate is [on crates.io] and can be used today in stable `#![no_std]` programs. - -The API documentation can be found [here](https://docs.rs/libm). - -[on crates.io]: https://crates.io/crates/libm - -## Benchmark -[benchmark]: #benchmark - -The benchmarks are located in `crates/libm-bench` and require a nightly Rust toolchain. -To run all benchmarks: - -> cargo +nightly bench --all - -## Contributing - -Please check [CONTRIBUTING.md](CONTRIBUTING.md) - -## Minimum Rust version policy - -This crate supports rustc 1.63 and newer. - -## License - -Usage is licensed under the MIT license ([LICENSE-MIT](LICENSE-MIT) or -https://opensource.org/licenses/MIT). - - -### Contribution - -Contributions are licensed under both the MIT license and the Apache License, -Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or -https://www.apache.org/licenses/LICENSE-2.0). Unless you explicitly state -otherwise, any contribution intentionally submitted for inclusion in the work -by you, as defined in the Apache-2.0 license, shall be dual licensed as -mentioned, without any additional terms or conditions. - -See `LICENSE.txt` for full details. diff --git a/library/compiler-builtins/libm/crates/musl-math-sys/musl b/library/compiler-builtins/libm/crates/musl-math-sys/musl deleted file mode 160000 index 61399d4bd02a..000000000000 --- a/library/compiler-builtins/libm/crates/musl-math-sys/musl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 61399d4bd02ae1ec03068445aa7ffe9174466bfd diff --git a/library/compiler-builtins/libm/libm/LICENSE.txt b/library/compiler-builtins/libm/libm/LICENSE.txt deleted file mode 120000 index 4ab43736a839..000000000000 --- a/library/compiler-builtins/libm/libm/LICENSE.txt +++ /dev/null @@ -1 +0,0 @@ -../LICENSE.txt \ No newline at end of file diff --git a/library/compiler-builtins/libm/libm/LICENSE.txt b/library/compiler-builtins/libm/libm/LICENSE.txt new file mode 100644 index 000000000000..2f8e41f14747 --- /dev/null +++ b/library/compiler-builtins/libm/libm/LICENSE.txt @@ -0,0 +1,258 @@ +rust-lang/libm as a whole is available for use under the MIT license: + +------------------------------------------------------------------------------ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ + +As a contributor, you agree that your code can be used under either the MIT +license or the Apache-2.0 license: + +------------------------------------------------------------------------------ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +------------------------------------------------------------------------------ + +This Rust library contains the following copyrights: + + Copyright (c) 2018 Jorge Aparicio + +Portions of this software are derived from third-party works licensed under +terms compatible with the above MIT license: + +* musl libc https://www.musl-libc.org/. This library contains the following + copyright: + + Copyright © 2005-2020 Rich Felker, et al. + +* The CORE-MATH project https://core-math.gitlabpages.inria.fr/. CORE-MATH + routines are available under the MIT license on a per-file basis. + +The musl libc COPYRIGHT file also includes the following notice relevant to +math portions of the library: + +------------------------------------------------------------------------------ +Much of the math library code (src/math/* and src/complex/*) is +Copyright © 1993,2004 Sun Microsystems or +Copyright © 2003-2011 David Schultz or +Copyright © 2003-2009 Steven G. Kargl or +Copyright © 2003-2009 Bruce D. Evans or +Copyright © 2008 Stephen L. Moshier or +Copyright © 2017-2018 Arm Limited +and labelled as such in comments in the individual source files. All +have been licensed under extremely permissive terms. +------------------------------------------------------------------------------ + +Copyright notices are retained in src/* files where relevant. diff --git a/library/compiler-builtins/libm/libm/README.md b/library/compiler-builtins/libm/libm/README.md deleted file mode 120000 index 32d46ee883b5..000000000000 --- a/library/compiler-builtins/libm/libm/README.md +++ /dev/null @@ -1 +0,0 @@ -../README.md \ No newline at end of file diff --git a/library/compiler-builtins/libm/libm/README.md b/library/compiler-builtins/libm/libm/README.md new file mode 100644 index 000000000000..52d760a4f159 --- /dev/null +++ b/library/compiler-builtins/libm/libm/README.md @@ -0,0 +1,56 @@ +# `libm` + +A port of [MUSL]'s libm to Rust. + +[MUSL]: https://musl.libc.org/ + +## Goals + +The short term goal of this library is to [enable math support (e.g. `sin`, `atan2`) for the +`wasm32-unknown-unknown` target][wasm] (cf. [rust-lang/compiler-builtins][pr]). The longer +term goal is to enable [math support in the `core` crate][core]. + +[wasm]: https://github.com/rust-lang/libm/milestone/1 +[pr]: https://github.com/rust-lang/compiler-builtins/pull/248 +[core]: https://github.com/rust-lang/libm/milestone/2 + +## Already usable + +This crate is [on crates.io] and can be used today in stable `#![no_std]` programs. + +The API documentation can be found [here](https://docs.rs/libm). + +[on crates.io]: https://crates.io/crates/libm + +## Benchmark +[benchmark]: #benchmark + +The benchmarks are located in `crates/libm-bench` and require a nightly Rust toolchain. +To run all benchmarks: + +> cargo +nightly bench --all + +## Contributing + +Please check [CONTRIBUTING.md](CONTRIBUTING.md) + +## Minimum Rust version policy + +This crate supports rustc 1.63 and newer. + +## License + +Usage is licensed under the MIT license ([LICENSE-MIT](LICENSE-MIT) or +https://opensource.org/licenses/MIT). + + +### Contribution + +Contributions are licensed under both the MIT license and the Apache License, +Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or +https://www.apache.org/licenses/LICENSE-2.0). Unless you explicitly state +otherwise, any contribution intentionally submitted for inclusion in the work +by you, as defined in the Apache-2.0 license, shall be dual licensed as +mentioned, without any additional terms or conditions. + +See `LICENSE.txt` for full details.