r_varsa.s 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. Copyright (C) 1996-1997 Id Software, Inc.
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. //
  16. // r_varsa.s
  17. //
  18. #include "asm_i386.h"
  19. #include "quakeasm.h"
  20. #include "asm_draw.h"
  21. #include "d_ifacea.h"
  22. #if id386
  23. .data
  24. //-------------------------------------------------------
  25. // ASM-only variables
  26. //-------------------------------------------------------
  27. .globl float_1, float_particle_z_clip, float_point5
  28. .globl float_minus_1, float_0
  29. float_0: .single 0.0
  30. float_1: .single 1.0
  31. float_minus_1: .single -1.0
  32. float_particle_z_clip: .single PARTICLE_Z_CLIP
  33. float_point5: .single 0.5
  34. .globl fp_16, fp_64k, fp_1m, fp_64kx64k
  35. .globl fp_1m_minus_1
  36. .globl fp_8
  37. fp_1m: .single 1048576.0
  38. fp_1m_minus_1: .single 1048575.0
  39. fp_64k: .single 65536.0
  40. fp_8: .single 8.0
  41. fp_16: .single 16.0
  42. fp_64kx64k: .long 0x4f000000 // (float)0x8000*0x10000
  43. .globl FloatZero, Float2ToThe31nd, FloatMinus2ToThe31nd
  44. FloatZero: .long 0
  45. Float2ToThe31nd: .long 0x4f000000
  46. FloatMinus2ToThe31nd: .long 0xcf000000
  47. .globl C(r_bmodelactive)
  48. C(r_bmodelactive): .long 0
  49. #endif // id386