#define scal_asin asin
#define scal_acos acos
#define scal_atan atan
+#define scal_atan2 atan2
#else
typedef float scal_t;
#define SCALAR_SIZE 4
#define scal_asin asinf
#define scal_acos acosf
#define scal_atan atanf
+#define scal_atan2 atan2f
#endif
#define scal_min2(A,B,C) scal_min(scal_min(A,B),C)