Skip to content

Commit

Permalink
Fix to enable g++ compilation on M1/M2 processors (issue #37).
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Gray committed Jun 9, 2023
1 parent 3cd8dae commit e8644cf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lsquare.cpp
Expand Up @@ -44,10 +44,12 @@ idea for nearly-singular matrices. */
112 bits of precision. Either is better than "ordinary" doubles
with a mere 52 bits of precision. */

#if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 406 && !defined( __arm__)
#define ldouble __float128
#if defined( __aarch64__)
#define ldouble _Float128
#elif ((__GNUC__ * 100) + __GNUC_MINOR__) >= 406 && !defined( __arm__)
#define ldouble __float128
#else
#define ldouble long double
#define ldouble long double
#endif

#define LSQUARE struct lsquare
Expand Down

0 comments on commit e8644cf

Please sign in to comment.