Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update toolchain to support std::remainder #7849

Merged
merged 3 commits into from
Jan 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bootloaders/eboot/eboot.elf
Binary file not shown.
174 changes: 87 additions & 87 deletions package/package_esp8266com_index.template.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions tests/device/test_sw_newlib/test_sw_newlib.ino
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <BSTest.h>
#include <cmath>
BS_ENV_DECLARE();


Expand Down Expand Up @@ -30,6 +31,13 @@ TEST_CASE("#612 fmod and sqrt work", "[newlib]")
CHECK(fabs(fmod(-10, -3) - (-1.0)) < 1e-5);
}


TEST_CASE("#7845 std::remainder works", "[newlib]")
{
CHECK(fabs(std::remainder((double)10.123456, (double)5.0) - (double)0.123456) < 1e-5);
CHECK(fabs(std::remainder((float)15.123456, (float)5.0) - (float)0.123456) < 1e-5);
}

void loop()
{
}
Binary file modified tools/sdk/lib/libbearssl.a
Binary file not shown.
Binary file modified tools/sdk/lib/libhal.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip2-1460-feat.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip2-1460.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip2-536-feat.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip2-536.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip6-1460-feat.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip6-536-feat.a
Binary file not shown.
Binary file modified tools/sdk/lib/libstdc++-exc.a
Binary file not shown.
Binary file modified tools/sdk/lib/libstdc++.a
Binary file not shown.