2
===========================================================================
3
Copyright (C) 1999-2005 Id Software, Inc.
5
This file is part of Quake III Arena source code.
7
Quake III Arena source code is free software; you can redistribute it
8
and/or modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2 of the License,
10
or (at your option) any later version.
12
Quake III Arena source code is distributed in the hope that it will be
13
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with Foobar; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
===========================================================================
24
// Sys_SnapVector NASM code (Andrew Henderson)
25
// See win32/win_shared.c for the Win32 equivalent
26
// This code is provided to ensure that the
27
// rounding behavior (and, if necessary, the
28
// precision) of DLL and QVM code are identical
29
// e.g. for network-visible operations.
30
// See ftol.nasm for operations on a single float,
31
// as used in compiled VM and DLL code that does
32
// not use this system trap.
35
// 23/09/05 Ported to gas by intel2gas, best supporting actor Tim Angus
48
// void Sys_SnapVector( float *v )
49
.globl C(Sys_SnapVector)
76
// void Sys_SnapVectorCW( float *v, unsigned short int cw )
77
.globl C(Sys_SnapVectorCW)