1. Matthew Turk
  2. enzo-3.0

Commits

Michael Kuhlen  committed 28bac4e

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

  • Participants
  • Parent commits 7205c5b
  • Branches active_particles

Comments (0)

Files changed (1)

File src/enzo/headers/macros_and_parameters.h

View file
 #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