1 // RUN: %clang_cc1 -emit-llvm %s -o %t
3 /* Sparc is not C99-compliant */
4 #if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
6 int main(void) { return 0; }
11 #define IMAGE_WIDTH 150
12 #define IMAGE_HEIGHT 50
16 #define IMAGE_SIZE 5000
23 #define step_X ((END_X - START_X)/IMAGE_WIDTH)
24 #define step_Y ((-START_Y - START_Y)/IMAGE_HEIGHT)
29 double hypot(double, double);
31 volatile double __complex__ accum
;
35 for (y
= 0; y
< IMAGE_HEIGHT
; ++y
) {
36 for (x
= 0; x
< IMAGE_WIDTH
; ++x
) {
37 double __complex__ c
= (START_X
+x
*step_X
) + (START_Y
+y
*step_Y
) * I
;
38 double __complex__ z
= 0.0;
40 for (n
= 0; n
< MAX_ITER
; ++n
) {
42 if (hypot(__real__ z
, __imag__ z
) >= ESCAPE
)