mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-08 00:40:21 +08:00
libtests/complex,math: Prevent optimizations
For constant arguments GCC calculates the values of the math library functions at compile-time. close #1741
This commit is contained in:
1 parent
dd309b1054
commit
80d99aa20c
2 files changed
+195
-81
No files matched your search
@@ -25,11 +25,13 @@
|
||||
|
||||
extern void FUNC(docomplex) (void);
|
||||
|
||||
volatile complex FTYPE ca, cb;
|
||||
|
||||
void
|
||||
FUNC(docomplex) (void)
|
||||
{
|
||||
#ifndef PROVIDE_EMPTY_FUNC
|
||||
complex FTYPE ca, cb, cc;
|
||||
complex FTYPE cc;
|
||||
FTYPE f1;
|
||||
|
||||
ca = 1.0 + 1.0 * I;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user