tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

jsimdcfg.inc.h (4768B)


      1 /*
      2 * This file generates the include file for the assembly
      3 * implementations by abusing the C preprocessor.
      4 *
      5 * Note: Some things are manually defined as they need to
      6 * be mapped to NASM types.
      7 */
      8 
      9 ;
     10 ; Automatically generated include file from jsimdcfg.inc.h
     11 ;
     12 
     13 #define JPEG_INTERNALS
     14 
     15 #include "../jpeglib.h"
     16 #include "../jconfig.h"
     17 #include "../jmorecfg.h"
     18 #include "jsimd.h"
     19 
     20 ;
     21 ; -- jpeglib.h
     22 ;
     23 
     24 %define _cpp_protection_DCTSIZE   DCTSIZE
     25 %define _cpp_protection_DCTSIZE2  DCTSIZE2
     26 
     27 ;
     28 ; -- jmorecfg.h
     29 ;
     30 
     31 %define _cpp_protection_RGB_RED             RGB_RED
     32 %define _cpp_protection_RGB_GREEN           RGB_GREEN
     33 %define _cpp_protection_RGB_BLUE            RGB_BLUE
     34 %define _cpp_protection_RGB_PIXELSIZE       RGB_PIXELSIZE
     35 
     36 %define _cpp_protection_EXT_RGB_RED         EXT_RGB_RED
     37 %define _cpp_protection_EXT_RGB_GREEN       EXT_RGB_GREEN
     38 %define _cpp_protection_EXT_RGB_BLUE        EXT_RGB_BLUE
     39 %define _cpp_protection_EXT_RGB_PIXELSIZE   EXT_RGB_PIXELSIZE
     40 
     41 %define _cpp_protection_EXT_RGBX_RED        EXT_RGBX_RED
     42 %define _cpp_protection_EXT_RGBX_GREEN      EXT_RGBX_GREEN
     43 %define _cpp_protection_EXT_RGBX_BLUE       EXT_RGBX_BLUE
     44 %define _cpp_protection_EXT_RGBX_PIXELSIZE  EXT_RGBX_PIXELSIZE
     45 
     46 %define _cpp_protection_EXT_BGR_RED         EXT_BGR_RED
     47 %define _cpp_protection_EXT_BGR_GREEN       EXT_BGR_GREEN
     48 %define _cpp_protection_EXT_BGR_BLUE        EXT_BGR_BLUE
     49 %define _cpp_protection_EXT_BGR_PIXELSIZE   EXT_BGR_PIXELSIZE
     50 
     51 %define _cpp_protection_EXT_BGRX_RED        EXT_BGRX_RED
     52 %define _cpp_protection_EXT_BGRX_GREEN      EXT_BGRX_GREEN
     53 %define _cpp_protection_EXT_BGRX_BLUE       EXT_BGRX_BLUE
     54 %define _cpp_protection_EXT_BGRX_PIXELSIZE  EXT_BGRX_PIXELSIZE
     55 
     56 %define _cpp_protection_EXT_XBGR_RED        EXT_XBGR_RED
     57 %define _cpp_protection_EXT_XBGR_GREEN      EXT_XBGR_GREEN
     58 %define _cpp_protection_EXT_XBGR_BLUE       EXT_XBGR_BLUE
     59 %define _cpp_protection_EXT_XBGR_PIXELSIZE  EXT_XBGR_PIXELSIZE
     60 
     61 %define _cpp_protection_EXT_XRGB_RED        EXT_XRGB_RED
     62 %define _cpp_protection_EXT_XRGB_GREEN      EXT_XRGB_GREEN
     63 %define _cpp_protection_EXT_XRGB_BLUE       EXT_XRGB_BLUE
     64 %define _cpp_protection_EXT_XRGB_PIXELSIZE  EXT_XRGB_PIXELSIZE
     65 
     66 %define RGBX_FILLER_0XFF  1
     67 
     68 ; Representation of a single sample (pixel element value).
     69 ; On this SIMD implementation, this must be 'unsigned char'.
     70 ;
     71 
     72 %define JSAMPLE            byte            ; unsigned char
     73 %define SIZEOF_JSAMPLE     SIZEOF_BYTE     ; sizeof(JSAMPLE)
     74 
     75 %define _cpp_protection_CENTERJSAMPLE  CENTERJSAMPLE
     76 
     77 ; Representation of a DCT frequency coefficient.
     78 ; On this SIMD implementation, this must be 'short'.
     79 ;
     80 %define JCOEF              word            ; short
     81 %define SIZEOF_JCOEF       SIZEOF_WORD     ; sizeof(JCOEF)
     82 
     83 ; Datatype used for image dimensions.
     84 ; On this SIMD implementation, this must be 'unsigned int'.
     85 ;
     86 %define JDIMENSION         dword           ; unsigned int
     87 %define SIZEOF_JDIMENSION  SIZEOF_DWORD    ; sizeof(JDIMENSION)
     88 
     89 %define JSAMPROW           POINTER         ; JSAMPLE *     (jpeglib.h)
     90 %define JSAMPARRAY         POINTER         ; JSAMPROW *    (jpeglib.h)
     91 %define JSAMPIMAGE         POINTER         ; JSAMPARRAY *  (jpeglib.h)
     92 %define JCOEFPTR           POINTER         ; JCOEF *       (jpeglib.h)
     93 %define SIZEOF_JSAMPROW    SIZEOF_POINTER  ; sizeof(JSAMPROW)
     94 %define SIZEOF_JSAMPARRAY  SIZEOF_POINTER  ; sizeof(JSAMPARRAY)
     95 %define SIZEOF_JSAMPIMAGE  SIZEOF_POINTER  ; sizeof(JSAMPIMAGE)
     96 %define SIZEOF_JCOEFPTR    SIZEOF_POINTER  ; sizeof(JCOEFPTR)
     97 
     98 ;
     99 ; -- jdct.h
    100 ;
    101 
    102 ; A forward DCT routine is given a pointer to a work area of type DCTELEM[];
    103 ; the DCT is to be performed in-place in that buffer.
    104 ; To maximize parallelism, Type DCTELEM is changed to short (originally, int).
    105 ;
    106 %define DCTELEM                 word         ; short
    107 %define SIZEOF_DCTELEM          SIZEOF_WORD  ; sizeof(DCTELEM)
    108 
    109 %define FAST_FLOAT              FP32         ; float
    110 %define SIZEOF_FAST_FLOAT       SIZEOF_FP32  ; sizeof(FAST_FLOAT)
    111 
    112 ; To maximize parallelism, Type MULTIPLIER is changed to short.
    113 ;
    114 %define ISLOW_MULT_TYPE         word         ; must be short
    115 %define SIZEOF_ISLOW_MULT_TYPE  SIZEOF_WORD  ; sizeof(ISLOW_MULT_TYPE)
    116 
    117 %define IFAST_MULT_TYPE         word         ; must be short
    118 %define SIZEOF_IFAST_MULT_TYPE  SIZEOF_WORD  ; sizeof(IFAST_MULT_TYPE)
    119 %define IFAST_SCALE_BITS        2            ; fractional bits in scale factors
    120 
    121 %define FLOAT_MULT_TYPE         FP32         ; must be float
    122 %define SIZEOF_FLOAT_MULT_TYPE  SIZEOF_FP32  ; sizeof(FLOAT_MULT_TYPE)
    123 
    124 ;
    125 ; -- jsimd.h
    126 ;
    127 
    128 %define _cpp_protection_JSIMD_NONE   JSIMD_NONE
    129 %define _cpp_protection_JSIMD_MMX    JSIMD_MMX
    130 %define _cpp_protection_JSIMD_3DNOW  JSIMD_3DNOW
    131 %define _cpp_protection_JSIMD_SSE    JSIMD_SSE
    132 %define _cpp_protection_JSIMD_SSE2   JSIMD_SSE2
    133 %define _cpp_protection_JSIMD_AVX2   JSIMD_AVX2