Commit Graph

32 Commits

Author SHA1 Message Date
Yaya-Cout
4c26e846d3 Fix some spammy warnings 2024-12-29 11:48:18 +01:00
Yaya-Cout
73450419bb [Ports] Merge Nspire port and Fxcg improvements
Close #327
2023-06-06 21:28:54 +02:00
circuit10
b44a95a9b3 Casio fx-CG series port (#324)
* Initial test - working on Linux

* Try to make it work with liba

* Stop using liba and the filesystem

* IT WORKS

* Key input, full res, fix some of the crashes

* Fix the hang when doing calculations

* Add some more key mappings

* Fix the square root issue

* Icons

* Better key mappings, brightness control, better gamma correction, more effficient framebuffer

* Cleanup stage 1

* Cleanup stage 2

* Make the build system build a g3a

* Make it not exit when you press the menu button

* Add Casio port to README

* Use omega-master instead of omega-dev

* Fix mistake with cherry-picking in the README

* Fix internal storage crash

* Fix compile error on Numworks calculators

* Upsilon branding

* Sharper icon

* Make the CI work

* Add power off and improve menu

* Map Alpha + up/down to the brightness shortcut

* Add missing file

* Fix web CI build

* Revert "Fix web CI build"

This reverts commit f19657d9fc.

* Change "prizm" to "fxcg"

* Add FASTLOAD option for Add-in Push

* Add some charatcers to the catalog on Casio and improve key mappings

* Build with -Os -flto

* Disable LTO for now as it's causing crashes

* Put back the fonts I accidently changed

I'd like to add an option for this though as I prefer the ones from Epsilon
2023-05-10 18:28:18 +02:00
Yaya-Cout
169fb7404e Fix spelling (#128)
* Fix spelling in .cpp files

* Fix spelling in all files
2022-01-20 17:21:35 +01:00
Arthur Camouseigt
1995781a9f [Poincare/IEEE754] Changed methods to use std function
Implemented std::nextafter to replace hand made one.
Methods next and previous are no longer making the difference between -0
and +0

Change-Id: I42e1a073623b70656d9df954694803840cf3088c
2020-11-04 15:30:53 +01:00
Romain Goyet
2e6dec5f1d [libaxx] initializer_list use size_t 2020-04-15 09:16:32 -04:00
Romain Goyet
77ee5126e1 [libaxx] Add algorithm
Only contains a super simple min and max implementation
2020-04-14 09:31:02 -04:00
Romain Goyet
1bd6105a0a [libaxx] Add initializer_list 2020-04-10 13:35:14 -04:00
Neven Sajko
201ecaef5b Performance fixes relating to floating point: erf and erfc
erf and erfc are missing float versions, so I import them from
openlibm. erf is used from Poincare::NormalDistribution::
StandardNormalCumulativeDistributiveFunctionAtAbscissa<float>, and erfc
is used (?) just from MicroPython.

To clarify, if there is no float version of a function like erf, but
there is a double version, C++ promotes the possible float parameter to
double and soft-float hilarity ensues.
2020-04-09 13:58:56 +02:00
Neven Sajko
bdc5be94b6 Performance fixes relating to floating point
Removes unneccesary usage of soft-float double usage. The reason for the
useless double math being done were broken standard C++ functions:
atanh<float>, sqrt<float>, asinh<float>, operator/<float>. This was in
turn caused by missing float versions of C++ functions hypot, atan2,
logb, scalbn.

A logbf implementation was missing from the libm, so I added one from
openlibm.
2020-04-09 13:58:56 +02:00
Jacob Young
a8783fe21f Remove a duplicate function, cleanup sorting and use consistent argument names in math.h.
Add missing math.h tests and make each test a single line for easier comparison with math.h.
Add missing cmath undefs and functions and use constexpr instead of static.
2020-03-16 15:00:40 +01:00
Émilie Feral
059c596a80 Makefiles: avoid building all sources for each target; introduce more
modularity
2019-08-08 17:22:01 +02:00
Romain Goyet
4f1d74f44b [build] Use an out-of-tree build 2019-03-06 15:00:59 +01:00
Léa Saviot
de5b085923 [poincare] Separate some declarations of std:complex in a .cpp 2018-09-07 10:18:55 +02:00
Émilie Feral
77047a173b [liba] define fmod 2018-07-18 17:09:07 +02:00
Émilie Feral
e7619633bd [liba] Add fmax in math.h header 2018-07-18 16:32:49 +02:00
Émilie Feral
2a05247629 [liba] Add hypot in math.h header 2018-07-18 16:32:49 +02:00
Émilie Feral
9fcb22ef8e [libaxx] Add complex c++ library 2018-07-18 16:32:49 +02:00
Émilie Feral
253a9de5fb [libaxx] Add std::erf in cmath 2018-01-04 15:48:06 +01:00
Romain Goyet
52bdf4a41f Merge branch 'cas_with_app_copy' into python_console 2017-11-21 18:44:38 +01:00
Jacob Young
da1e66e798 Fix #115 by fixing the math.h and cmath includes. 2017-10-13 18:08:15 +02:00
Émilie Feral
11d0ad31cf [poincare] Fix implementation of utility
Change-Id: If13237893a1ded53560e53cca51146befcf424bf
2017-09-29 16:34:46 +02:00
Émilie Feral
1964d61fdc [libaxx] add cmath and use cmath instead of math.h when required
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
2017-08-16 09:55:29 +02:00
Romain Goyet
c0040d9aae [libaxx] Add operator new[] and delete[]
Change-Id: Id20e803461a6e8c2b3484d094a5483763c06ed0d
2017-08-02 09:56:19 +02:00
Émilie Feral
af4dc3cfd9 [libaxx] Inline placement new
Change-Id: I561c5221d8284bf4fbe5846ee346baa874829904
2017-05-18 15:17:05 +02:00
Romain Goyet
64b31a2974 [libaxx] Support placement new
Change-Id: Ie2e2157cb27e7061c3225dbc01654465ae43e19f
2017-05-18 14:14:33 +02:00
Romain Goyet
59e52d7387 [libaxx] Implement std::move
Change-Id: I0c4c21ad8b8db4fc0f8c4ee61d9c79b49dd7b278
2017-05-09 11:08:55 +02:00
Romain Goyet
7fb1f78f6f [libaxx] Define __cxa_atexit
In practice, it does nothing!

Change-Id: I5fb92299c4672d1635d0b77c2fc5de4e666c7213
2016-12-08 14:49:35 +01:00
Romain Goyet
6f5a3cf48f [libaxx] Explicitely define __cxa_pure_virtual
Change-Id: I07315f1bf84771a2784788e0d0eea4360245701d
2016-12-08 14:48:47 +01:00
Romain Goyet
4f3a062bb8 libaxx: remove a warning
Change-Id: I0d59ee19258e63d92adc870bb068f733adf39376
2016-04-25 16:53:34 +02:00
Romain Goyet
435410b18b [libaxx] delete operator 2015-09-21 10:37:55 +02:00
Romain Goyet
872efea4d1 Liba cleanup 2015-05-31 13:51:41 +02:00