1 ;*****************************************************************************
2 ;* const-a.asm: x86 global constants
3 ;*****************************************************************************
4 ;* Copyright (C) 2010 x264 project
6 ;* Authors: Loren Merritt <lorenm@u.washington.edu>
7 ;* Fiona Glaser <fiona@x264.com>
9 ;* This program is free software; you can redistribute it and/or modify
10 ;* it under the terms of the GNU General Public License as published by
11 ;* the Free Software Foundation; either version 2 of the License, or
12 ;* (at your option) any later version.
14 ;* This program is distributed in the hope that it will be useful,
15 ;* but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;* GNU General Public License for more details.
19 ;* You should have received a copy of the GNU General Public License
20 ;* along with this program; if not, write to the Free Software
21 ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
23 ;* This program is also available under a commercial proprietary license.
24 ;* For more information, contact us at licensing@x264.com.
25 ;*****************************************************************************
31 const pb_01, times 8 db 0,1
32 const pb_0, times 16 db 0
33 const pb_a1, times 16 db 0xa1
34 const pb_1, times 16 db 1
35 const pb_3, times 16 db 3
36 const hsub_mul, times 8 db 1, -1
37 const pb_shuf8x8c, db 0,0,0,0,2,2,2,2,4,4,4,4,6,6,6,6
39 const pw_1, times 8 dw 1
40 const pw_2, times 8 dw 2
41 const pw_4, times 8 dw 4
42 const pw_8, times 8 dw 8
43 const pw_16, times 8 dw 16
44 const pw_32, times 8 dw 32
45 const pw_64, times 8 dw 64
46 const pw_32_0, times 4 dw 32,
48 const pw_8000, times 8 dw 0x8000
49 const pw_3fff, times 8 dw 0x3fff
50 const pw_pixel_max,times 8 dw ((1 << BIT_DEPTH)-1)
52 const pd_1, times 4 dd 1
53 const pd_32, times 4 dd 32
54 const pd_128, times 4 dd 128
55 const pd_ffff, times 4 dd 0xffff
56 const pw_00ff, times 8 dw 0x00ff
57 const pw_ff00, times 8 dw 0xff00
59 const pb_reverse, db 7, 6, 5, 4, 3, 2, 1, 0