libm/libm: Do not force type size evaluation.

Since C99, `FLT_EVAL_METHOD` should be left for the compiler/libc to
define.

This also breaks compilation with picolibc as the target's libc, since
it defines said symbol in math.h before the libm define is evaluated by
the compiler.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Alessandro Gatti 2024-05-09 06:33:57 +02:00
rodzic 8762fe8b4c
commit c3b23b841a
2 zmienionych plików z 0 dodań i 4 usunięć

Wyświetl plik

@ -19,8 +19,6 @@
#include <stdint.h>
#include <math.h>
#define FLT_EVAL_METHOD 0
#define FORCE_EVAL(x) do { \
if (sizeof(x) == sizeof(float)) { \
volatile float __x; \

Wyświetl plik

@ -15,8 +15,6 @@
#include <stdint.h>
#include <math.h>
#define FLT_EVAL_METHOD 0
#define FORCE_EVAL(x) do { \
if (sizeof(x) == sizeof(float)) { \
volatile float __x; \