19 |
; * along with this program ; if not, write to the Free Software |
; * along with this program ; if not, write to the Free Software |
20 |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
; * |
; * |
22 |
; * $Id: cbp_3dne.asm,v 1.3 2004-03-22 22:36:23 edgomez Exp $ |
; * $Id: cbp_3dne.asm,v 1.4 2004-08-22 11:46:09 edgomez Exp $ |
23 |
; * |
; * |
24 |
; ***************************************************************************/ |
; ***************************************************************************/ |
25 |
|
|
34 |
|
|
35 |
%macro cglobal 1 |
%macro cglobal 1 |
36 |
%ifdef PREFIX |
%ifdef PREFIX |
37 |
|
%ifdef MARK_FUNCS |
38 |
|
global _%1:function |
39 |
|
%define %1 _%1:function |
40 |
|
%else |
41 |
global _%1 |
global _%1 |
42 |
%define %1 _%1 |
%define %1 _%1 |
43 |
|
%endif |
44 |
|
%else |
45 |
|
%ifdef MARK_FUNCS |
46 |
|
global %1:function |
47 |
%else |
%else |
48 |
global %1 |
global %1 |
49 |
%endif |
%endif |
50 |
|
%endif |
51 |
%endmacro |
%endmacro |
52 |
|
|
|
|
|
53 |
%macro calc_cbp 1 |
%macro calc_cbp 1 |
54 |
pshufw mm0, [eax], 229 ; =11100101 |
pshufw mm0, [eax], 229 ; =11100101 |
55 |
movq mm1, [eax+8] |
movq mm1, [eax+8] |