.file "openmp.c" .comm array,400000000,32 .text .globl main .type main, @function main: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 movq %rsp, %rbp .cfi_offset 6, -16 .cfi_def_cfa_register 6 subq $16, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movl $0, %edx movl $0, %esi movl $main.omp_fn.0, %edi call GOMP_parallel_start movl $0, %edi call main.omp_fn.0 call GOMP_parallel_end movl $0, %eax leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size main, .-main .type main.omp_fn.0, @function main.omp_fn.0: .LFB1: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 movq %rsp, %rbp .cfi_offset 6, -16 .cfi_def_cfa_register 6 pushq %rbx subq $40, %rsp movq %rdi, -40(%rbp) .cfi_offset 3, -24 call omp_get_num_threads movl %eax, %ebx call omp_get_thread_num movl %eax, %ecx movl $100000000, %eax movl %eax, %edx sarl $31, %edx idivl %ebx movl %eax, %edx imull %ebx, %edx cmpl $100000000, %edx setne %dl movzbl %dl, %edx addl %eax, %edx movl %edx, %eax imull %ecx, %eax leal (%rax,%rdx), %edx movl $100000000, %ecx cmpl $100000000, %edx cmovg %ecx, %edx cmpl %edx, %eax jge .L2 movl %eax, -20(%rbp) .L4: movl -20(%rbp), %ecx movl %ecx, %eax addl %eax, %eax leal (%rax,%rcx), %ecx movl -20(%rbp), %eax cltq movl %ecx, array(,%rax,4) addl $1, -20(%rbp) cmpl %edx, -20(%rbp) jl .L4 .L2: addq $40, %rsp popq %rbx leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE1: .size main.omp_fn.0, .-main.omp_fn.0 .ident "GCC: (GNU) 4.5.4" .section .note.GNU-stack,"",@progbits