comparison armv4l/simple_idct_arm.S @ 8069:316762ae96a7 libavcodec

ARM: use new macros for assembler function labels
author mru
date Mon, 27 Oct 2008 00:25:09 +0000
parents 15ed47af1838
children
comparison
equal deleted inserted replaced
8068:923c713c0c48 8069:316762ae96a7
21 * 21 *
22 * You should have received a copy of the GNU Lesser General Public 22 * You should have received a copy of the GNU Lesser General Public
23 * License along with FFmpeg; if not, write to the Free Software 23 * License along with FFmpeg; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 */ 25 */
26
27 #include "asm.S"
26 28
27 /* useful constants for the algorithm, they are save in __constant_ptr__ at */ 29 /* useful constants for the algorithm, they are save in __constant_ptr__ at */
28 /* the end of the source code.*/ 30 /* the end of the source code.*/
29 #define W1 22725 31 #define W1 22725
30 #define W2 21407 32 #define W2 21407
51 #define ROW_SHIFTED_1 1024 /* 1<< (ROW_SHIFT-1) */ 53 #define ROW_SHIFTED_1 1024 /* 1<< (ROW_SHIFT-1) */
52 #define COL_SHIFTED_1 524288 /* 1<< (COL_SHIFT-1) */ 54 #define COL_SHIFTED_1 524288 /* 1<< (COL_SHIFT-1) */
53 55
54 56
55 .text 57 .text
56 .align 58
57 .global simple_idct_ARM 59 function simple_idct_ARM, export=1
58
59 simple_idct_ARM:
60 @@ void simple_idct_ARM(int16_t *block) 60 @@ void simple_idct_ARM(int16_t *block)
61 @@ save stack for reg needed (take all of them), 61 @@ save stack for reg needed (take all of them),
62 @@ R0-R3 are scratch regs, so no need to save them, but R0 contains the pointer to block 62 @@ R0-R3 are scratch regs, so no need to save them, but R0 contains the pointer to block
63 @@ so it must not be overwritten, if it is not saved!! 63 @@ so it must not be overwritten, if it is not saved!!
64 @@ R12 is another scratch register, so it should not be saved too 64 @@ R12 is another scratch register, so it should not be saved too