OLD | NEW |
1 ; | 1 ; |
2 ; jcclrss2-64.asm - colorspace conversion (64-bit SSE2) | 2 ; jcclrss2-64.asm - colorspace conversion (64-bit SSE2) |
3 ; | 3 ; |
4 ; x86 SIMD extension for IJG JPEG library | 4 ; x86 SIMD extension for IJG JPEG library |
5 ; Copyright (C) 1999-2006, MIYASAKA Masaru. | 5 ; Copyright (C) 1999-2006, MIYASAKA Masaru. |
6 ; Copyright (C) 2009, D. R. Commander. | 6 ; Copyright (C) 2009, D. R. Commander. |
7 ; For conditions of distribution and use, see copyright notice in jsimdext.inc | 7 ; For conditions of distribution and use, see copyright notice in jsimdext.inc |
8 ; | 8 ; |
9 ; This file should be assembled with NASM (Netwide Assembler), | 9 ; This file should be assembled with NASM (Netwide Assembler), |
10 ; can *not* be assembled with Microsoft's MASM or any compatible | 10 ; can *not* be assembled with Microsoft's MASM or any compatible |
11 ; assembler (including Borland's Turbo Assembler). | 11 ; assembler (including Borland's Turbo Assembler). |
12 ; NASM is available from http://nasm.sourceforge.net/ or | 12 ; NASM is available from http://nasm.sourceforge.net/ or |
13 ; http://sourceforge.net/project/showfiles.php?group_id=6208 | 13 ; http://sourceforge.net/project/showfiles.php?group_id=6208 |
14 ; | 14 ; |
15 ; [TAB8] | 15 ; [TAB8] |
16 | 16 |
17 %include "jcolsamp.inc" | 17 %include "jcolsamp.inc" |
18 | 18 |
19 ; -------------------------------------------------------------------------- | 19 ; -------------------------------------------------------------------------- |
| 20 %ifndef NEED_SECTION |
| 21 %define NEED_SECTION |
20 SECTION SEG_TEXT | 22 SECTION SEG_TEXT |
21 BITS 64 | 23 BITS 64 |
| 24 %endif |
| 25 |
22 ; | 26 ; |
23 ; Convert some rows of samples to the output colorspace. | 27 ; Convert some rows of samples to the output colorspace. |
24 ; | 28 ; |
25 ; GLOBAL(void) | 29 ; GLOBAL(void) |
26 ; jsimd_rgb_ycc_convert_sse2 (JDIMENSION img_width, | 30 ; jsimd_rgb_ycc_convert_sse2 (JDIMENSION img_width, |
27 ; JSAMPARRAY input_buf, JSAMPIMAGE output_buf, | 31 ; JSAMPARRAY input_buf, JSAMPIMAGE output_buf, |
28 ; JDIMENSION output_row, int num_rows); | 32 ; JDIMENSION output_row, int num_rows); |
29 ; | 33 ; |
30 | 34 |
31 ; r10 = JDIMENSION img_width | 35 ; r10 = JDIMENSION img_width |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 pop rbx | 482 pop rbx |
479 uncollect_args | 483 uncollect_args |
480 mov rsp,rbp ; rsp <- aligned rbp | 484 mov rsp,rbp ; rsp <- aligned rbp |
481 pop rsp ; rsp <- original rbp | 485 pop rsp ; rsp <- original rbp |
482 pop rbp | 486 pop rbp |
483 ret | 487 ret |
484 | 488 |
485 ; For some reason, the OS X linker does not honor the request to align the | 489 ; For some reason, the OS X linker does not honor the request to align the |
486 ; segment unless we do this. | 490 ; segment unless we do this. |
487 align 16 | 491 align 16 |
OLD | NEW |