Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: simd/jidctint-mmx.asm

Issue 1948123002: Add PRIVATE flags to global symbols (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libjpeg_turbo.git@master
Patch Set: Response to comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « simd/jidctfst-sse2-64.asm ('k') | simd/jidctint-sse2.asm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; 1 ;
2 ; jidctint.asm - accurate integer IDCT (MMX) 2 ; jidctint.asm - accurate integer IDCT (MMX)
3 ; 3 ;
4 ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB 4 ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
5 ; 5 ;
6 ; Based on 6 ; Based on
7 ; x86 SIMD extension for IJG JPEG library 7 ; x86 SIMD extension for IJG JPEG library
8 ; Copyright (C) 1999-2006, MIYASAKA Masaru. 8 ; Copyright (C) 1999-2006, MIYASAKA Masaru.
9 ; For conditions of distribution and use, see copyright notice in jsimdext.inc 9 ; For conditions of distribution and use, see copyright notice in jsimdext.inc
10 ; 10 ;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 F_1_961 equ DESCALE(2106220350,30-CONST_BITS) ; FIX(1.961570560) 59 F_1_961 equ DESCALE(2106220350,30-CONST_BITS) ; FIX(1.961570560)
60 F_2_053 equ DESCALE(2204520673,30-CONST_BITS) ; FIX(2.053119869) 60 F_2_053 equ DESCALE(2204520673,30-CONST_BITS) ; FIX(2.053119869)
61 F_2_562 equ DESCALE(2751909506,30-CONST_BITS) ; FIX(2.562915447) 61 F_2_562 equ DESCALE(2751909506,30-CONST_BITS) ; FIX(2.562915447)
62 F_3_072 equ DESCALE(3299298341,30-CONST_BITS) ; FIX(3.072711026) 62 F_3_072 equ DESCALE(3299298341,30-CONST_BITS) ; FIX(3.072711026)
63 %endif 63 %endif
64 64
65 ; -------------------------------------------------------------------------- 65 ; --------------------------------------------------------------------------
66 SECTION SEG_CONST 66 SECTION SEG_CONST
67 67
68 alignz 16 68 alignz 16
69 global EXTN(jconst_idct_islow_mmx) 69 global EXTN(jconst_idct_islow_mmx) PRIVATE
70 70
71 EXTN(jconst_idct_islow_mmx): 71 EXTN(jconst_idct_islow_mmx):
72 72
73 PW_F130_F054 times 2 dw (F_0_541+F_0_765), F_0_541 73 PW_F130_F054 times 2 dw (F_0_541+F_0_765), F_0_541
74 PW_F054_MF130 times 2 dw F_0_541, (F_0_541-F_1_847) 74 PW_F054_MF130 times 2 dw F_0_541, (F_0_541-F_1_847)
75 PW_MF078_F117 times 2 dw (F_1_175-F_1_961), F_1_175 75 PW_MF078_F117 times 2 dw (F_1_175-F_1_961), F_1_175
76 PW_F117_F078 times 2 dw F_1_175, (F_1_175-F_0_390) 76 PW_F117_F078 times 2 dw F_1_175, (F_1_175-F_0_390)
77 PW_MF060_MF089 times 2 dw (F_0_298-F_0_899),-F_0_899 77 PW_MF060_MF089 times 2 dw (F_0_298-F_0_899),-F_0_899
78 PW_MF089_F060 times 2 dw -F_0_899, (F_1_501-F_0_899) 78 PW_MF089_F060 times 2 dw -F_0_899, (F_1_501-F_0_899)
79 PW_MF050_MF256 times 2 dw (F_2_053-F_2_562),-F_2_562 79 PW_MF050_MF256 times 2 dw (F_2_053-F_2_562),-F_2_562
(...skipping 20 matching lines...) Expand all
100 %define output_buf(b) (b)+16 ; JSAMPARRAY output_buf 100 %define output_buf(b) (b)+16 ; JSAMPARRAY output_buf
101 %define output_col(b) (b)+20 ; JDIMENSION output_col 101 %define output_col(b) (b)+20 ; JDIMENSION output_col
102 102
103 %define original_ebp ebp+0 103 %define original_ebp ebp+0
104 %define wk(i) ebp-(WK_NUM-(i))*SIZEOF_MMWORD ; mmword wk[WK_NUM] 104 %define wk(i) ebp-(WK_NUM-(i))*SIZEOF_MMWORD ; mmword wk[WK_NUM]
105 %define WK_NUM 12 105 %define WK_NUM 12
106 %define workspace wk(0)-DCTSIZE2*SIZEOF_JCOEF 106 %define workspace wk(0)-DCTSIZE2*SIZEOF_JCOEF
107 ; JCOEF workspace[DCTSIZE2] 107 ; JCOEF workspace[DCTSIZE2]
108 108
109 align 16 109 align 16
110 global EXTN(jsimd_idct_islow_mmx) 110 global EXTN(jsimd_idct_islow_mmx) PRIVATE
111 111
112 EXTN(jsimd_idct_islow_mmx): 112 EXTN(jsimd_idct_islow_mmx):
113 push ebp 113 push ebp
114 mov eax,esp ; eax = original ebp 114 mov eax,esp ; eax = original ebp
115 sub esp, byte 4 115 sub esp, byte 4
116 and esp, byte (-SIZEOF_MMWORD) ; align to 64 bits 116 and esp, byte (-SIZEOF_MMWORD) ; align to 64 bits
117 mov [esp],eax 117 mov [esp],eax
118 mov ebp,esp ; ebp = aligned ebp 118 mov ebp,esp ; ebp = aligned ebp
119 lea esp, [workspace] 119 lea esp, [workspace]
120 push ebx 120 push ebx
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 ; pop ecx ; need not be preserved 843 ; pop ecx ; need not be preserved
844 pop ebx 844 pop ebx
845 mov esp,ebp ; esp <- aligned ebp 845 mov esp,ebp ; esp <- aligned ebp
846 pop esp ; esp <- original ebp 846 pop esp ; esp <- original ebp
847 pop ebp 847 pop ebp
848 ret 848 ret
849 849
850 ; For some reason, the OS X linker does not honor the request to align the 850 ; For some reason, the OS X linker does not honor the request to align the
851 ; segment unless we do this. 851 ; segment unless we do this.
852 align 16 852 align 16
OLDNEW
« no previous file with comments | « simd/jidctfst-sse2-64.asm ('k') | simd/jidctint-sse2.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698