Skip to content
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
30 changes: 30 additions & 0 deletions .github/workflows/compile_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,36 @@ jobs:
- name: STMicroelectronics:stm32
source-url: https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
internalid: stm32_official
- fqbn: esp8266:esp8266:huzzah
type: 8266
platforms: |
- name: esp8266:esp8266
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
internalid: esp8266
- fqbn: arduino:mbed_giga:giga
platforms: |
- name: arduino:mbed_giga
internalid: arduino_giga
- fqbn: rp2040:rp2040:rpipico
type: rp2040
platforms: |
- name: rp2040:rp2040
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
internalid: rp2040
- fqbn: arduino:renesas_uno:minima
platforms: |
- name: arduino:renesas_uno
internalid: arduino_unor4
- fqbn: teensy:avr:teensy36
platforms: |
- name: teensy:avr
source-url: https://www.pjrc.com/teensy/package_teensy_index.json
internalid: teensy36
- fqbn: teensy:avr:teensy41
platforms: |
- name: teensy:avr
source-url: https://www.pjrc.com/teensy/package_teensy_index.json
internalid: teensy41

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=FixMath
version=1.0.8
version=1.0.9
author=Thomas Combriat and Thomas Friedrichsmeier
maintainer=Thomas Combriat <tomcombriat@live.fr>
sentence=Fixed Point Arithmetics for Arduino and others
Expand Down
4 changes: 2 additions & 2 deletions src/FixMath_Autotests.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
*
*/

#if (defined(__GNUC__) && (__GNUC__ < 10)) || (__cplusplus >= 202002L)
#if (defined(__GNUC__) && (__GNUC__ < 12) && !defined(ESP8266)) && !defined(ARDUINO_ARCH_SAMD) || (__cplusplus >= 202002L)
// Bit-shifting negative number has not been formally defined behavior before C++ 2020, but rather technically "implementation defined". It thus
// could not be used in constexpr statements (although working quite fine, at runtime).
// At the time of this writing (07/2024), we do not have a c++ 2020 compiler running in our automated test workflow. However, older versions of GCC
// are less pedantic, and will regard at least the case of shift by 0 bits (-1 << 0) as defined. We leverage this fact to compile as many checks as possible.
// are less pedantic, at least on some platforms (not ESP8266 and SAMD apparently), and will regard at least the case of shift by 0 bits (-1 << 0) as defined. We leverage this fact to compile as many checks as possible.
#define SHIFT_NEGATIVE_BY_ZERO_DEFINED 1
#else
#define SHIFT_NEGATIVE_BY_ZERO_DEFINED 0
Expand Down