mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-06 13:11:20 +00:00
b4e8e0750c
fixes the floating point exception
84 lines
2 KiB
ArmAsm
84 lines
2 KiB
ArmAsm
/*
|
|
r_varsa.S
|
|
|
|
(description)
|
|
|
|
Copyright (C) 1996-1997 Id Software, Inc.
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to:
|
|
|
|
Free Software Foundation, Inc.
|
|
59 Temple Place - Suite 330
|
|
Boston, MA 02111-1307, USA
|
|
|
|
$Id$
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
# include <config.h>
|
|
#endif
|
|
#include "asm_i386.h"
|
|
#include "quakeasm.h"
|
|
#include "asm_draw.h"
|
|
#include "d_ifacea.h"
|
|
|
|
#ifdef USE_INTEL_ASM
|
|
|
|
.data
|
|
|
|
//-------------------------------------------------------
|
|
// ASM-only variables
|
|
//-------------------------------------------------------
|
|
.globl float_1, float_particle_z_clip, float_point5
|
|
.globl float_minus_1, float_0
|
|
float_0: .single 0.0
|
|
float_1: .single 1.0
|
|
float_minus_1: .single -1.0
|
|
float_particle_z_clip: .single PARTICLE_Z_CLIP
|
|
float_point5: .single 0.5
|
|
|
|
.globl fp_16, fp_64k, fp_1m, fp_64kx64k
|
|
.globl fp_1m_minus_1
|
|
.globl fp_8
|
|
fp_1m: .single 1048576.0
|
|
fp_1m_minus_1: .single 1048575.0
|
|
fp_64k: .single 65536.0
|
|
fp_8: .single 8.0
|
|
fp_16: .single 16.0
|
|
fp_64kx64k: .long 0x4f000000 // (float)0x8000*0x10000
|
|
|
|
|
|
.globl FloatZero, Float2ToThe31nd, FloatMinus2ToThe31nd
|
|
FloatZero: .long 0
|
|
Float2ToThe31nd: .long 0x4f000000
|
|
FloatMinus2ToThe31nd: .long 0xcf000000
|
|
|
|
.globl r_ceil_cw, r_single_cw
|
|
r_ceil_cw: .long 0
|
|
r_single_cw: .long 0
|
|
|
|
.globl C(r_bmodelactive)
|
|
C(r_bmodelactive): .long 0
|
|
|
|
.global C(R_InitVars)
|
|
C(R_InitVars):
|
|
movl ceil_cw, %eax
|
|
movl single_cw, %edx
|
|
movl %eax, r_ceil_cw
|
|
movl %edx, r_single_cw
|
|
ret
|
|
|
|
#endif // USE_INTEL_ASM
|
|
|