Commit Graph

9711 Commits

Author SHA1 Message Date
Émilie Feral
98f2b8a11f [poincare][apps/shared] Use IEEE754::exponentInBase10 instead of
std::floor(std::log10()) to avoid precision issues when computing
the number of digits of a number
2019-10-03 10:31:25 +02:00
Romain Goyet
1845e58d0f [poincare] Avoid rounding error 2019-10-03 09:40:33 +02:00
Émilie Feral
d9af0300d4 [poincare] Decimal: change order definition on Decimal expression
Now, Decimal node "1.000E3" is not equal to Decimal node "1E3" node anymore.
This prevents from using double comparison (which is sometimes wrong due to
double precision) to implement decimal comparison.
2019-10-02 18:20:57 +02:00
Romain Goyet
2f12205dd7 [ion/simulator/web] Minimize the SDL subsystems 2019-10-02 15:02:55 +02:00
Émilie Feral
dc20371a45 [poincare] PrintInt: std::log10 can introduce precision error. Use
IEEE754<double>::exponentBase10 instead
2019-10-02 15:02:30 +02:00
Émilie Feral
b756924f46 [poincare] Tests: fix test to comply with windows libm precision 2019-10-02 15:02:30 +02:00
Émilie Feral
ee852bd2d0 [poincare] Tests: change test to work with all platforms libm precision 2019-10-02 15:02:30 +02:00
Romain Goyet
ff9809d7dc [doc/build/macos] Use a tap 2019-10-01 17:34:45 +02:00
Romain Goyet
96cc96ec5f [ci] Use the proper tap on macOS 2019-10-01 17:03:46 +02:00
Romain Goyet
51d1c7b389 [ci] Don't rebuild on push
Otherwises tests are ran twice, one for the PR and then after the merge
2019-10-01 17:00:11 +02:00
Romain Goyet
3b857f15b7 [ion/simulator] Import assert when needed 2019-10-01 16:58:30 +02:00
Romain Goyet
b05a58a1ab [docs] Don't forget imagemagick on linux 2019-10-01 16:58:30 +02:00
Jean-Baptiste Boric
3f0f407d9c [docs] Update Debian SDK instructions 2019-10-01 16:58:30 +02:00
Jean-Baptiste Boric
eecf1c3c49 [ion/sumulator] Add fallback to software rendering
Some Linux platforms like Linux containers on Chrome OS do not offer
hardware-accelerated rendering.
2019-10-01 16:58:30 +02:00
Jean-Baptiste Boric
f7c555d593 [ion/simulator] Remove useless HAVE_IMMINTRIN_H for Linux 2019-10-01 16:58:30 +02:00
Romain Goyet
f61529fe20 [ion/device] Discard ARM.exidx and ARM.extab sections 2019-10-01 16:57:17 +02:00
Romain Goyet
cb2557c988 [build/device] Add a comment about gc-sections 2019-10-01 16:57:17 +02:00
Lionel Debroux
1cf0bfbea9 [scripts] Use --gc-sections linker flag even when building with LTO. This saves more than 1 KB on a N0110 build here. 2019-10-01 16:57:17 +02:00
Romain Goyet
a03967f215 [ci] Proper test runner path on Windows 2019-10-01 16:17:22 +02:00
Romain Goyet
6e89110a76 [build] Don't use libpng on Windows either 2019-10-01 16:17:22 +02:00
Romain Goyet
03c4574e7b [ion/src/simulator] Don't try to setrlimit on Windows 2019-10-01 16:17:22 +02:00
Romain Goyet
dcede42c38 Update the README
And discard Travis and Appveyor
2019-10-01 16:10:36 +02:00
Romain Goyet
aaedc11845 [ci] Check on pull request 2019-10-01 15:47:14 +02:00
Romain Goyet
73496ab612 Use GitHub CI 2019-10-01 15:38:27 +02:00
Romain Goyet
99414b3da7 [build] Fix EPSILON_SIMULATOR_HAS_LIBPNG 2019-10-01 15:38:27 +02:00
Romain Goyet
73729396b8 [build] Don't forget stdio 2019-10-01 15:38:27 +02:00
Romain Goyet
db03aad6b3 [ion] Conditionaly use EPSILON_SIMULATOR_HAS_LIBPNG
Avoid it on Emscripten where it's not available
2019-10-01 15:38:27 +02:00
Romain Goyet
cb053cf8d2 [build] Clean variants 2019-10-01 15:38:27 +02:00
Romain Goyet
e81426f93b [build] Clean the different targets 2019-10-01 15:38:27 +02:00
Léa Saviot
5acda9069c [poincare/normal_distribution] Uses sigma, not var 2019-09-30 17:26:24 +02:00
Émilie Feral
141b2ee9f4 [build] Fuzzer launcher: fix the master/slave option for afl-fuzz 2019-09-30 17:06:03 +02:00
Léa Saviot
2dee8f2b1f [apps/regression] Fix cursor redrawing when changing cursor type
Scenario:
double x[numberOfPoints] = {0.0, 0.975, 1.97, 2.945, 3.971, 4.887, 5.924, 6.964, 7.979, 8.974, 9.998};
double y[numberOfPoints] = {-23.784, -23.322, -28.322, -18.422, -4.813206, 7.146241, 16.631, 16.632, 9.209189, -6.050863, -19.659};
Quadratic regression, navigate on the points then go on the
regressioncurve -> there is a drawing glitch
2019-09-30 17:05:17 +02:00
Ruben Dashyan
1868e47b19 [poincare/expression] Assert defautReplaceSymbolWithExpression does not alter the number of children 2019-09-27 17:57:29 +02:00
Ruben Dashyan
77860aeee9 [poincare] Remove replaceUnknown
Unused anymore
2019-09-27 17:57:29 +02:00
Ruben Dashyan
cc1d51f331 [apps/shared/expression_model] Substitute Expression::replaceSymbolWithExpression for replaceUnknown
since the latter calls the former anyway.
2019-09-27 17:57:29 +02:00
Ruben Dashyan
af2c95be26 [poincare/parametered_expression] Turn replaceUnknown into replaceSymbolWithExpression
That is the only place where those methods did differ.
2019-09-27 17:57:29 +02:00
Ruben Dashyan
d506bb4442 [poincare] Remove Expression::defaultReplaceUnknown
and substitute defaultReplaceSymbolWithExpression instead
2019-09-27 17:57:29 +02:00
Ruben Dashyan
7d5f9d0aca [poincare] Factor asserts in Expression::replaceUnknown 2019-09-27 17:57:29 +02:00
Ruben Dashyan
76e0f78c53 [poincare/expression] Replacing a symbol does not alter in this case the number of children 2019-09-27 17:57:29 +02:00
Ruben Dashyan
af64f50a63 [poincare/parametered_expression] Remove redundant assert 2019-09-27 17:57:29 +02:00
Romain Goyet
473982c575 [travis] Include iOS and Android in the build matrix 2019-09-27 17:57:05 +02:00
Romain Goyet
31daf5ff8f [ion/simulator/android] Use ANDROID_HOME to point to the Android SDK 2019-09-27 17:57:05 +02:00
Romain Goyet
162d857a65 [ion/simulator/android] Make code signing optional
It now depends on a set of environment variables being defined
2019-09-27 17:57:05 +02:00
Romain Goyet
82861bb77c [ion/simulator/android] Use a gradle wrapper
This way one doesn't need to install Gradle manually before building
2019-09-27 17:57:05 +02:00
Romain Goyet
e0b24e030c [ion/simulator/ios] Don't error-out on a missing provisionning profile 2019-09-27 17:57:05 +02:00
Romain Goyet
5d0377f147 [build/android] NDK_HOST_TAG autodetection 2019-09-27 17:57:05 +02:00
Romain Goyet
72765351f3 [ion/simulator/ios] Fix the build 2019-09-27 17:57:05 +02:00
Romain Goyet
94f20b7827 [ion/simulator/linux] Thinner build 2019-09-27 17:57:05 +02:00
Romain Goyet
f83969dd9a [ion/simulator/linux] Avoid using const for libjpeg
Because different libjpeg versions ship with different const variants
2019-09-27 17:57:05 +02:00
Romain Goyet
e46dd0c5b1 [ion/simulator/android] Use stricter build rules 2019-09-27 17:57:05 +02:00