comparison arm/asm.S @ 9989:2cc65fb72572 libavcodec

Conditionally compile ELF-specific ARM assembly bits that fail on Windows CE. patch by Martin Storsj, martin martin st
author diego
date Mon, 27 Jul 2009 12:53:44 +0000
parents 93c52263ff74
children c50957bfd553
comparison
equal deleted inserted replaced
9988:b8a9cfe64488 9989:2cc65fb72572
19 */ 19 */
20 20
21 #include "config.h" 21 #include "config.h"
22 22
23 .macro require8, val=1 23 .macro require8, val=1
24 #ifdef __ELF__
24 .eabi_attribute 24, \val 25 .eabi_attribute 24, \val
26 #endif
25 .endm 27 .endm
26 28
27 .macro preserve8, val=1 29 .macro preserve8, val=1
30 #ifdef __ELF__
28 .eabi_attribute 25, \val 31 .eabi_attribute 25, \val
32 #endif
29 .endm 33 .endm
30 34
31 .macro function name, export=0 35 .macro function name, export=0
32 .if \export 36 .if \export
33 .global \name 37 .global \name
34 .endif 38 .endif
39 #ifdef __ELF__
35 .type \name, %function 40 .type \name, %function
41 #endif
36 .func \name 42 .func \name
37 \name: 43 \name:
38 .endm 44 .endm
39 45
40 .macro movrel rd, val 46 .macro movrel rd, val