Mercurial > libavcodec.hg
comparison arm/asm.S @ 12014:e21223172ca8 libavcodec
ARM: (mostly) whitespace cosmetics
author | mru |
---|---|
date | Tue, 29 Jun 2010 14:48:41 +0000 |
parents | c16e47ff9a49 |
children | b9bbf46b3623 |
comparison
equal
deleted
inserted
replaced
12013:2ae70e2c31a4 | 12014:e21223172ca8 |
---|---|
24 # define ELF | 24 # define ELF |
25 #else | 25 #else |
26 # define ELF @ | 26 # define ELF @ |
27 #endif | 27 #endif |
28 | 28 |
29 .macro require8, val=1 | 29 .macro require8 val=1 |
30 ELF .eabi_attribute 24, \val | 30 ELF .eabi_attribute 24, \val |
31 .endm | 31 .endm |
32 | 32 |
33 .macro preserve8, val=1 | 33 .macro preserve8 val=1 |
34 ELF .eabi_attribute 25, \val | 34 ELF .eabi_attribute 25, \val |
35 .endm | 35 .endm |
36 | 36 |
37 .macro function name, export=0 | 37 .macro function name, export=0 |
38 .macro endfunc | 38 .macro endfunc |
39 ELF .size \name, . - \name | 39 ELF .size \name, . - \name |
40 .endfunc | 40 .endfunc |
41 .purgem endfunc | 41 .purgem endfunc |
42 .endm | 42 .endm |
43 .if \export | 43 .if \export |
44 .global EXTERN_ASM\name | 44 .global EXTERN_ASM\name |
45 EXTERN_ASM\name: | 45 EXTERN_ASM\name: |
46 .endif | 46 .endif |
47 ELF .type \name, %function | 47 ELF .type \name, %function |
48 .func \name | 48 .func \name |
49 \name: | 49 \name: |
50 .endm | 50 .endm |
51 | 51 |
52 .macro movrel rd, val | 52 .macro movrel rd, val |
53 #if HAVE_ARMV6T2 && !CONFIG_PIC | 53 #if HAVE_ARMV6T2 && !CONFIG_PIC |
54 movw \rd, #:lower16:\val | 54 movw \rd, #:lower16:\val |
55 movt \rd, #:upper16:\val | 55 movt \rd, #:upper16:\val |
56 #else | 56 #else |
57 ldr \rd, =\val | 57 ldr \rd, =\val |
58 #endif | 58 #endif |
59 .endm | 59 .endm |
60 | 60 |
61 #if HAVE_VFP_ARGS | 61 #if HAVE_VFP_ARGS |
62 .eabi_attribute 28, 1 | 62 .eabi_attribute 28, 1 |
63 # define VFP | 63 # define VFP |
64 # define NOVFP @ | 64 # define NOVFP @ |