Commits

Michael Kuhlen committed 28bac4e

Further updating MODF macro to use modfl if float is set to 128 bit precision (CONFIG_PFLOAT_128).

Comments (0)

Files changed (1)

src/enzo/headers/macros_and_parameters.h

 #define SIN(X) sin((double) (X))
 #ifdef CONFIG_PFLOAT_4
 #define MODF(X,Y) modff((X), (Y))
+#elif CONFIG_PFLOAT_8
+#define MODF(X,Y) modf((X), (Y))
+#elif CONFIG_PFLOAT_16
+#define MODF(X,Y) modfl((X), (Y))
 #else
 #define MODF(X,Y) modf((X), (Y))
 #endif