| OLD | NEW |
| 1 ;***************************************************************************** | 1 ;***************************************************************************** |
| 2 ;* x86inc.asm | 2 ;* x86inc.asm |
| 3 ;***************************************************************************** | 3 ;***************************************************************************** |
| 4 ;* Copyright (C) 2005-2011 x264 project | 4 ;* Copyright (C) 2005-2011 x264 project |
| 5 ;* | 5 ;* |
| 6 ;* Authors: Loren Merritt <lorenm@u.washington.edu> | 6 ;* Authors: Loren Merritt <lorenm@u.washington.edu> |
| 7 ;* Anton Mitrofanov <BugMaster@narod.ru> | 7 ;* Anton Mitrofanov <BugMaster@narod.ru> |
| 8 ;* Jason Garrett-Glaser <darkshikari@gmail.com> | 8 ;* Jason Garrett-Glaser <darkshikari@gmail.com> |
| 9 ;* | 9 ;* |
| 10 ;* Permission to use, copy, modify, and/or distribute this software for any | 10 ;* Permission to use, copy, modify, and/or distribute this software for any |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 ; 3DNow instructions, for sharing code between AVX, SSE and 3DN | 943 ; 3DNow instructions, for sharing code between AVX, SSE and 3DN |
| 944 AVX_INSTR pfadd, 1, 0 | 944 AVX_INSTR pfadd, 1, 0 |
| 945 AVX_INSTR pfsub, 1, 0 | 945 AVX_INSTR pfsub, 1, 0 |
| 946 AVX_INSTR pfmul, 1, 0 | 946 AVX_INSTR pfmul, 1, 0 |
| 947 | 947 |
| 948 ;============================================================================= | 948 ;============================================================================= |
| 949 ; Chromium extensions | 949 ; Chromium extensions |
| 950 ;============================================================================= | 950 ;============================================================================= |
| 951 | 951 |
| 952 %ifdef CHROMIUM | 952 %ifdef CHROMIUM |
| 953 ; Always build PIC code on Mac for Chromium. | 953 ; Always build PIC code on Mac or Linux for Chromium. |
| 954 %ifdef MACHO | 954 %ifdef MACHO |
| 955 %define PIC | 955 %define PIC |
| 956 %endif | 956 %endif |
| 957 %ifdef ELF |
| 958 %define PIC |
| 959 %endif |
| 957 | 960 |
| 958 ; | 961 ; |
| 959 ; LOAD_SYM %1 (reg), %2 (sym) | 962 ; LOAD_SYM %1 (reg), %2 (sym) |
| 960 ; Copies the address to a local symbol to the specified register. | 963 ; Copies the address to a local symbol to the specified register. |
| 961 ; | 964 ; |
| 962 | 965 |
| 963 %macro LOAD_SYM 2 | 966 %macro LOAD_SYM 2 |
| 964 | 967 |
| 965 %ifdef MACHO | 968 %ifdef PIC |
| 966 call %%geteip | 969 call %%geteip |
| 967 add %1, %2 - $ | 970 add %1, %2 - $ |
| 968 jmp %%end | 971 jmp %%end |
| 969 %%geteip: | 972 %%geteip: |
| 970 mov %1, [rsp] | 973 mov %1, [rsp] |
| 971 ret | 974 ret |
| 972 %%end: | 975 %%end: |
| 973 | 976 |
| 974 %else | 977 %else |
| 975 lea %1, [%2] | 978 lea %1, [%2] |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1000 %define PRIVATE :private_extern | 1003 %define PRIVATE :private_extern |
| 1001 %elifdef ELF | 1004 %elifdef ELF |
| 1002 %define PRIVATE :hidden | 1005 %define PRIVATE :hidden |
| 1003 %else | 1006 %else |
| 1004 %define PRIVATE | 1007 %define PRIVATE |
| 1005 %endif | 1008 %endif |
| 1006 | 1009 |
| 1007 %endif ; CHROMIUM | 1010 %endif ; CHROMIUM |
| 1008 | 1011 |
| 1009 %endif ; MEDIA_BASE_SIMD_X86INC_ASM_ | 1012 %endif ; MEDIA_BASE_SIMD_X86INC_ASM_ |
| OLD | NEW |