Skip to content

Commit f92da81

Browse files
committed
Fix fixed-point and default 64-bit double AVR
1 parent 3e3be94 commit f92da81

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

ref_app/src/math/fixed_point/fixed_point.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
///////////////////////////////////////////////////////////////////////////////
2-
// Copyright Christopher Kormanyos 2007 - 2018.
2+
// Copyright Christopher Kormanyos 2007 - 2025.
33
// Distributed under the Boost Software License,
44
// Version 1.0. (See accompanying file LICENSE_1_0.txt
55
// or copy at http://www.boost.org/LICENSE_1_0.txt)
66
//
77

8-
#ifndef FIXED_POINT_2011_02_22_H_
9-
#define FIXED_POINT_2011_02_22_H_
8+
#ifndef FIXED_POINT_2011_02_22_H
9+
#define FIXED_POINT_2011_02_22_H
1010

1111
#define FIXED_POINT_DISABLE_IOSTREAM
1212

13+
#include <util/utility/util_nothing.h>
14+
#include <util/utility/util_utype_helper.h>
15+
16+
#include <cmath>
1317
#include <cstddef>
1418
#include <cstdint>
1519
#include <limits>
@@ -19,9 +23,6 @@
1923
#include <ostream>
2024
#endif
2125

22-
#include <util/utility/util_nothing.h>
23-
#include <util/utility/util_utype_helper.h>
24-
2526
// Utility structure to help with the epsilon limits for fixed_point.
2627
// These special numbers represent the smallest value for a decimal part
2728
// that differs from 1 for the corresponding decimal-part width.
@@ -972,4 +973,4 @@
972973
return sqrt<fixed_point_type>((x * x) + (y * y));
973974
}
974975

975-
#endif // FIXED_POINT_2011_02_22_H_
976+
#endif // FIXED_POINT_2011_02_22_H

ref_app/target/micros/atmega2560/make/atmega2560_flags.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright Christopher Kormanyos 2007 - 2024.
2+
# Copyright Christopher Kormanyos 2007 - 2025.
33
# Distributed under the Boost Software License,
44
# Version 1.0. (See accompanying file LICENSE_1_0.txt
55
# or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -25,7 +25,7 @@ TGT_ALLFLAGS = -Os
2525

2626
ifeq ($(TYP_OS),WIN)
2727
TGT_ALLFLAGS := $(TGT_ALLFLAGS) \
28-
-mdouble=32 \
28+
-mdouble=64 \
2929
-mlong-double=64
3030
endif
3131

ref_app/target/micros/atmega4809/make/atmega4809_flags.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ TGT_ALLFLAGS = -O2
2626

2727
ifeq ($(TYP_OS),WIN)
2828
TGT_ALLFLAGS := $(TGT_ALLFLAGS) \
29-
-mdouble=32 \
29+
-mdouble=64 \
3030
-mlong-double=64
3131
endif
3232

ref_app/target/micros/avr/make/avr_flags.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ TGT_ALLFLAGS = -O2
2525

2626
ifeq ($(TYP_OS),WIN)
2727
TGT_ALLFLAGS := $(TGT_ALLFLAGS) \
28-
-mdouble=32 \
28+
-mdouble=64 \
2929
-mlong-double=64
3030
endif
3131

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy