.section .init
call OPENSSL_cpuid_setup
+___
+
+if ($flavour =~ /elf/) {
+ print ".section .note.GNU-stack,\"\",\@progbits\n"
+}
+
+print<<___;
.text
.globl OPENSSL_atomic_add
xor %rax,%rax
cmp \$15,$arg2
jae .Lot
+ cmp \$0,$arg2
+ je .Lret
.Little:
mov %al,($arg1)
sub \$1,$arg2
lea 1($arg1),$arg1
jnz .Little
+.Lret:
ret
.align 16
.Lot: