OLD | NEW |
1 ; | 1 ; |
2 ; jdmrgss2-64.asm - merged upsampling/color conversion (64-bit SSE2) | 2 ; jdmrgss2-64.asm - merged upsampling/color conversion (64-bit SSE2) |
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 ; Copyright 2009 D. R. Commander | 5 ; Copyright 2009 D. R. Commander |
6 ; | 6 ; |
7 ; Based on | 7 ; Based on |
8 ; x86 SIMD extension for IJG JPEG library | 8 ; x86 SIMD extension for IJG JPEG library |
9 ; Copyright (C) 1999-2006, MIYASAKA Masaru. | 9 ; Copyright (C) 1999-2006, MIYASAKA Masaru. |
10 ; For conditions of distribution and use, see copyright notice in jsimdext.inc | 10 ; For conditions of distribution and use, see copyright notice in jsimdext.inc |
11 ; | 11 ; |
12 ; This file should be assembled with NASM (Netwide Assembler), | 12 ; This file should be assembled with NASM (Netwide Assembler), |
13 ; can *not* be assembled with Microsoft's MASM or any compatible | 13 ; can *not* be assembled with Microsoft's MASM or any compatible |
14 ; assembler (including Borland's Turbo Assembler). | 14 ; assembler (including Borland's Turbo Assembler). |
15 ; NASM is available from http://nasm.sourceforge.net/ for | 15 ; NASM is available from http://nasm.sourceforge.net/ for |
16 ; http://sourceforge.net/project/showfiles.php?group_id=6208 | 16 ; http://sourceforge.net/project/showfiles.php?group_id=6208 |
17 ; | 17 ; |
18 ; [TAB8] | 18 ; [TAB8] |
19 | 19 |
20 %include "jcolsamp.inc" | 20 %include "jcolsamp.inc" |
21 | 21 |
22 ; -------------------------------------------------------------------------- | 22 ; -------------------------------------------------------------------------- |
23 %ifndef NEED_SECTION | |
24 %define NEED_SECTION | |
25 SECTION SEG_TEXT | |
26 BITS 64 | |
27 %endif | |
28 | |
29 ; | 23 ; |
30 ; Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical. | 24 ; Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical. |
31 ; | 25 ; |
32 ; GLOBAL(void) | 26 ; GLOBAL(void) |
33 ; jsimd_h2v1_merged_upsample_sse2 (JDIMENSION output_width, | 27 ; jsimd_h2v1_merged_upsample_sse2 (JDIMENSION output_width, |
34 ; JSAMPIMAGE input_buf, | 28 ; JSAMPIMAGE input_buf, |
35 ; JDIMENSION in_row_group_ctr, | 29 ; JDIMENSION in_row_group_ctr, |
36 ; JSAMPARRAY output_buf); | 30 ; JSAMPARRAY output_buf); |
37 ; | 31 ; |
38 | 32 |
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 pop rdx | 626 pop rdx |
633 | 627 |
634 pop rbx | 628 pop rbx |
635 uncollect_args | 629 uncollect_args |
636 pop rbp | 630 pop rbp |
637 ret | 631 ret |
638 | 632 |
639 ; For some reason, the OS X linker does not honor the request to align the | 633 ; For some reason, the OS X linker does not honor the request to align the |
640 ; segment unless we do this. | 634 ; segment unless we do this. |
641 align 16 | 635 align 16 |
OLD | NEW |