Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9faf0b63
Commit
9faf0b63
authored
Oct 07, 2002
by
Dave Jones
Committed by
Linus Torvalds
Oct 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] x86 math-emu update
From 2.4, mostly just things like quietening compiler warnings.
parent
8f372a59
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
11 deletions
+15
-11
arch/i386/math-emu/fpu_system.h
arch/i386/math-emu/fpu_system.h
+2
-0
arch/i386/math-emu/reg_add_sub.c
arch/i386/math-emu/reg_add_sub.c
+1
-1
arch/i386/math-emu/reg_compare.c
arch/i386/math-emu/reg_compare.c
+3
-3
arch/i386/math-emu/reg_divide.c
arch/i386/math-emu/reg_divide.c
+1
-0
arch/i386/math-emu/reg_ld_str.c
arch/i386/math-emu/reg_ld_str.c
+1
-1
arch/i386/math-emu/reg_mul.c
arch/i386/math-emu/reg_mul.c
+1
-0
include/math-emu/op-1.h
include/math-emu/op-1.h
+1
-1
include/math-emu/soft-fp.h
include/math-emu/soft-fp.h
+5
-5
No files found.
arch/i386/math-emu/fpu_system.h
View file @
9faf0b63
...
...
@@ -20,6 +20,8 @@
of the stack frame of math_emulate() */
#define SETUP_DATA_AREA(arg) FPU_info = (struct info *) &arg
/* s is always from a cpu register, and the cpu does bounds checking
* during register load --> no further bounds checks needed */
#define LDT_DESCRIPTOR(s) (((struct desc_struct *)current->mm->context.ldt)[(s) >> 3])
#define SEG_D_SIZE(x) ((x).b & (3 << 21))
#define SEG_G_BIT(x) ((x).b & (1 << 23))
...
...
arch/i386/math-emu/reg_add_sub.c
View file @
9faf0b63
...
...
@@ -140,7 +140,7 @@ int FPU_sub(int flags, int rm, int control_w)
FPU_REG
const
*
a
,
*
b
;
FPU_REG
*
dest
;
u_char
taga
,
tagb
,
signa
,
signb
,
saved_sign
,
sign
;
int
diff
,
tag
,
expa
,
expb
,
deststnr
;
int
diff
,
tag
=
0
,
expa
,
expb
,
deststnr
;
a
=
&
st
(
0
);
taga
=
FPU_gettag0
();
...
...
arch/i386/math-emu/reg_compare.c
View file @
9faf0b63
...
...
@@ -174,7 +174,7 @@ static int compare(FPU_REG const *b, int tagb)
/* This function requires that st(0) is not empty */
int
FPU_compare_st_data
(
FPU_REG
const
*
loaded_data
,
u_char
loaded_tag
)
{
int
f
,
c
;
int
f
=
0
,
c
;
c
=
compare
(
loaded_data
,
loaded_tag
);
...
...
@@ -216,7 +216,7 @@ int FPU_compare_st_data(FPU_REG const *loaded_data, u_char loaded_tag)
static
int
compare_st_st
(
int
nr
)
{
int
f
,
c
;
int
f
=
0
,
c
;
FPU_REG
*
st_ptr
;
if
(
!
NOT_EMPTY
(
0
)
||
!
NOT_EMPTY
(
nr
)
)
...
...
@@ -268,7 +268,7 @@ static int compare_st_st(int nr)
static
int
compare_u_st_st
(
int
nr
)
{
int
f
,
c
;
int
f
=
0
,
c
;
FPU_REG
*
st_ptr
;
if
(
!
NOT_EMPTY
(
0
)
||
!
NOT_EMPTY
(
nr
)
)
...
...
arch/i386/math-emu/reg_divide.c
View file @
9faf0b63
...
...
@@ -203,4 +203,5 @@ int FPU_div(int flags, int rm, int control_w)
}
#endif
/* PARANOID */
return
0
;
}
arch/i386/math-emu/reg_ld_str.c
View file @
9faf0b63
...
...
@@ -632,7 +632,7 @@ int FPU_store_double(FPU_REG *st0_ptr, u_char st0_tag, double *dfloat)
/* Put a float into user memory */
int
FPU_store_single
(
FPU_REG
*
st0_ptr
,
u_char
st0_tag
,
float
*
single
)
{
long
templ
;
long
templ
=
0
;
unsigned
long
increment
=
0
;
/* avoid gcc warnings */
int
precision_loss
;
int
exp
;
...
...
arch/i386/math-emu/reg_mul.c
View file @
9faf0b63
...
...
@@ -128,4 +128,5 @@ int FPU_mul(FPU_REG const *b, u_char tagb, int deststnr, int control_w)
}
#endif
/* PARANOID */
return
0
;
}
include/math-emu/op-1.h
View file @
9faf0b63
...
...
@@ -25,7 +25,7 @@
#ifndef __MATH_EMU_OP_1_H__
#define __MATH_EMU_OP_1_H__
#define _FP_FRAC_DECL_1(X) _FP_W_TYPE X##_f
#define _FP_FRAC_DECL_1(X) _FP_W_TYPE X##_f
=0
#define _FP_FRAC_COPY_1(D,S) (D##_f = S##_f)
#define _FP_FRAC_SET_1(X,I) (X##_f = I)
#define _FP_FRAC_HIGH_1(X) (X##_f)
...
...
include/math-emu/soft-fp.h
View file @
9faf0b63
...
...
@@ -154,11 +154,11 @@ do { \
#define _FP_CLS_COMBINE(x,y) (((x) << 2) | (y))
#include
"op-1.h"
#include
"op-2.h"
#include
"op-4.h"
#include
"op-8.h"
#include
"op-common.h"
#include
<math-emu/op-1.h>
#include
<math-emu/op-2.h>
#include
<math-emu/op-4.h>
#include
<math-emu/op-8.h>
#include
<math-emu/op-common.h>
/* Sigh. Silly things longlong.h needs. */
#define UWtype _FP_W_TYPE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment