]> git.pld-linux.org Git - packages/kernel.git/blob - linux-2.4.20-no-FPU.patch
- added description of djurban's branch
[packages/kernel.git] / linux-2.4.20-no-FPU.patch
1 diff -ur linux-2.4.20/drivers/media/video/tda7432.c linux-2.4.20.fpu/drivers/media/video/tda7432.c
2 --- linux-2.4.20/drivers/media/video/tda7432.c  Fri Nov 29 00:53:13 2002
3 +++ linux-2.4.20.fpu/drivers/media/video/tda7432.c      Sun Mar  9 20:55:29 2003
4 @@ -398,7 +398,7 @@
5                 if(!maxvol){  /* max +20db */
6                         va->volume = ( 0x6f - (t->volume & 0x7F) ) * 630;
7                 } else {     /* max 0db   */
8 -                       va->volume = (int )(( 0x6f - (t->volume & 0x7F) ) * 829.557);
9 +                       va->volume = (int )(( 0x6f - (t->volume & 0x7F) ) * 829557/1000);
10                 }
11                 
12                 /* Balance depends on L,R attenuation
13 @@ -440,7 +440,7 @@
14                         if(!maxvol){ /* max +20db */
15                                 t->volume = 0x6f - ( (va->volume)/630 );
16                         } else {    /* max 0db   */
17 -                               t->volume = 0x6f - ((int) (va->volume)/829.557 );
18 +                               t->volume = 0x6f - ((int) (va->volume*1000)/829557 );
19                         }
20                 
21                 if (loudness)           /* Turn on the loudness bit */
22 diff -ur linux-2.4.20/fs/davfs/proc.c linux-2.4.20.fpu/fs/davfs/proc.c
23 --- linux-2.4.20/fs/davfs/proc.c        Sun Mar  9 21:12:08 2003
24 +++ linux-2.4.20.fpu/fs/davfs/proc.c    Sun Mar  9 21:05:33 2003
25 @@ -156,7 +156,7 @@
26  int dav_atoi(char *digit) {
27      int ret=0;
28      int i = (strlen(digit)-1);
29 -    double weight=1;
30 +    unsigned int weight=1;
31      
32      for(;i;i--)
33          weight*=10;
34 diff -ur linux-2.4.20/net/ipv4/netfilter/ipt_fuzzy.c linux-2.4.20.fpu/net/ipv4/netfilter/ipt_fuzzy.c
35 --- linux-2.4.20/net/ipv4/netfilter/ipt_fuzzy.c Sun Mar  9 21:12:14 2003
36 +++ linux-2.4.20.fpu/net/ipv4/netfilter/ipt_fuzzy.c     Sun Mar  9 21:15:22 2003
37 @@ -30,7 +30,7 @@
38   Expressed in percentage
39  */
40  
41 -#define PAR_LOW                0.01
42 +#define PAR_LOW                1/100
43  #define PAR_HIGH       1
44  
45  static spinlock_t fuzzy_lock = SPIN_LOCK_UNLOCKED ;
46 @@ -109,7 +109,7 @@
47         howlow  = mf_low(info->mean_rate,info->minimum_rate,info->maximum_rate);
48  
49      info->acceptance_rate = (u_int8_t) \
50 -                          ( PAR_LOW*howhigh + PAR_HIGH*howlow ) ;
51 +                          ( howhigh*PAR_LOW + PAR_HIGH*howlow ) ;
52  
53      /* In fact , the above defuzzification would require a denominator
54         proportional to (howhigh+howlow) but , in this particular case ,
55 @@ -129,7 +129,7 @@
56                 get_random_bytes((void *)(&random_number), 1);
57  
58                 /*  If within the acceptance , it can pass => don't match */
59 -               if ( random_number <= 2.55 * info->acceptance_rate )
60 +               if ( random_number <= (255 * info->acceptance_rate) / 100 )
61                         return 0 ;
62                 else
63                         return 1; /* It can't pass ( It matches ) */
This page took 0.023897 seconds and 3 git commands to generate.