Remove unused matha.S
Before commit a7d33b1c "(bug #3639) BoxOnPlaneSide rewrite" there
was more code here, but since then the only thing left is the
Invert24To16 function, to which I couldn't find any references since
the beginning of ioquake3's git history.
Resolves: https://github.com/ioquake/ioq3/issues/774
Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
parent
d133be28eb
commit
9f0280bca1
2
Makefile
2
Makefile
|
|
@ -2173,7 +2173,6 @@ endif
|
|||
ifeq ($(ARCH),x86)
|
||||
Q3OBJ += \
|
||||
$(B)/client/snd_mixa.o \
|
||||
$(B)/client/matha.o \
|
||||
$(B)/client/snapvector.o \
|
||||
$(B)/client/ftola.o
|
||||
endif
|
||||
|
|
@ -2534,7 +2533,6 @@ Q3DOBJ = \
|
|||
|
||||
ifeq ($(ARCH),x86)
|
||||
Q3DOBJ += \
|
||||
$(B)/ded/matha.o \
|
||||
$(B)/ded/snapvector.o \
|
||||
$(B)/ded/ftola.o
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ enable_language(ASM)
|
|||
|
||||
set(ASM_SOURCES
|
||||
${SOURCE_DIR}/asm/ftola.c
|
||||
${SOURCE_DIR}/asm/matha.S
|
||||
${SOURCE_DIR}/asm/snapvector.c
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,54 +0,0 @@
|
|||
/*
|
||||
===========================================================================
|
||||
Copyright (C) 1999-2005 Id Software, Inc.
|
||||
|
||||
This file is part of Quake III Arena source code.
|
||||
|
||||
Quake III Arena source code 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.
|
||||
|
||||
Quake III Arena source code 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 Quake III Arena source code; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
===========================================================================
|
||||
*/
|
||||
//
|
||||
// math.s
|
||||
// x86 assembly-language math routines.
|
||||
|
||||
#include "qasm.h"
|
||||
|
||||
|
||||
#if id386
|
||||
|
||||
.text
|
||||
|
||||
// TODO: rounding needed?
|
||||
// stack parameter offset
|
||||
#define val 4
|
||||
|
||||
.globl C(Invert24To16)
|
||||
C(Invert24To16):
|
||||
|
||||
movl val(%esp),%ecx
|
||||
movl $0x100,%edx // 0x10000000000 as dividend
|
||||
cmpl %edx,%ecx
|
||||
jle LOutOfRange
|
||||
|
||||
subl %eax,%eax
|
||||
divl %ecx
|
||||
|
||||
ret
|
||||
|
||||
LOutOfRange:
|
||||
movl $0xFFFFFFFF,%eax
|
||||
ret
|
||||
|
||||
#endif // id386
|
||||
|
|
@ -52,7 +52,6 @@
|
|||
274FAB79178FA81800B17C7A /* snd_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 274FAB78178FA81700B17C7A /* snd_main.c */; };
|
||||
274FAB7B178FA86E00B17C7A /* md5.c in Sources */ = {isa = PBXBuildFile; fileRef = 274FAB7A178FA86E00B17C7A /* md5.c */; };
|
||||
274FAB88178FA98E00B17C7A /* snd_mixa.s in Sources */ = {isa = PBXBuildFile; fileRef = 274FAB82178FA97100B17C7A /* snd_mixa.s */; };
|
||||
274FAB8A178FA9AA00B17C7A /* matha.s in Sources */ = {isa = PBXBuildFile; fileRef = 274FAB7E178FA97100B17C7A /* matha.s */; };
|
||||
274FABFD178FAC4900B17C7A /* vm_x86.c in Sources */ = {isa = PBXBuildFile; fileRef = 2711BE9E14D136DF005EB142 /* vm_x86.c */; };
|
||||
274FABFE178FAC6E00B17C7A /* tr_noise.c in Sources */ = {isa = PBXBuildFile; fileRef = 27AAD064178E03620093DFC0 /* tr_noise.c */; };
|
||||
2758BB3317905B8F007F6582 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2758BB3217905B8F007F6582 /* IOKit.framework */; };
|
||||
|
|
@ -173,7 +172,6 @@
|
|||
274FAB78178FA81700B17C7A /* snd_main.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = snd_main.c; sourceTree = "<group>"; };
|
||||
274FAB7A178FA86E00B17C7A /* md5.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = md5.c; sourceTree = "<group>"; };
|
||||
274FAB7D178FA97100B17C7A /* ftola.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = ftola.c; sourceTree = "<group>"; };
|
||||
274FAB7E178FA97100B17C7A /* matha.s */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.asm; path = matha.s; sourceTree = "<group>"; };
|
||||
274FAB7F178FA97100B17C7A /* qasm-inline.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "qasm-inline.h"; sourceTree = "<group>"; };
|
||||
274FAB80178FA97100B17C7A /* qasm.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = qasm.h; sourceTree = "<group>"; };
|
||||
274FAB81178FA97100B17C7A /* snapvector.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = snapvector.c; sourceTree = "<group>"; };
|
||||
|
|
@ -597,7 +595,6 @@
|
|||
isa = PBXGroup;
|
||||
children = (
|
||||
274FAB7D178FA97100B17C7A /* ftola.c */,
|
||||
274FAB7E178FA97100B17C7A /* matha.s */,
|
||||
274FAB7F178FA97100B17C7A /* qasm-inline.h */,
|
||||
274FAB80178FA97100B17C7A /* qasm.h */,
|
||||
274FAB81178FA97100B17C7A /* snapvector.c */,
|
||||
|
|
@ -925,7 +922,6 @@
|
|||
274FAB79178FA81800B17C7A /* snd_main.c in Sources */,
|
||||
274FAB7B178FA86E00B17C7A /* md5.c in Sources */,
|
||||
274FAB88178FA98E00B17C7A /* snd_mixa.s in Sources */,
|
||||
274FAB8A178FA9AA00B17C7A /* matha.s in Sources */,
|
||||
274FABFD178FAC4900B17C7A /* vm_x86.c in Sources */,
|
||||
274FABFE178FAC6E00B17C7A /* tr_noise.c in Sources */,
|
||||
A1F318612603128500A11B0E /* snapvector.c in Sources */,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user