]>
Commit | Line | Data |
---|---|---|
c0a2c04b PS |
1 | --- parted-1.8.7/include/parted/natmath.h.orig 2007-04-18 17:12:10.000000000 -0400 |
2 | +++ parted-1.8.7/include/parted/natmath.h 2007-06-04 10:03:37.374232283 -0400 | |
3 | @@ -87,10 +87,10 @@ | |
4 | extern const PedAlignment* ped_alignment_any; | |
5 | extern const PedAlignment* ped_alignment_none; | |
6 | ||
7 | -extern inline PedSector | |
8 | +extern PedSector | |
9 | ped_div_round_up (PedSector numerator, PedSector divisor); | |
10 | ||
11 | -extern inline PedSector | |
12 | +extern PedSector | |
13 | ped_div_round_to_nearest (PedSector numerator, PedSector divisor); | |
14 | ||
15 | #endif /* PED_NATMATH_H_INCLUDED */ | |
16 | --- parted-1.8.7/libparted/cs/natmath.c.orig 2007-04-18 17:12:10.000000000 -0400 | |
17 | +++ parted-1.8.7/libparted/cs/natmath.c 2007-06-04 10:06:39.470610953 -0400 | |
18 | @@ -75,13 +75,13 @@ | |
19 | return sector - abs_mod (sector, grain_size); | |
20 | } | |
21 | ||
22 | -inline PedSector | |
23 | +PedSector | |
24 | ped_div_round_up (PedSector numerator, PedSector divisor) | |
25 | { | |
26 | return (numerator + divisor - 1) / divisor; | |
27 | } | |
28 | ||
29 | -inline PedSector | |
30 | +PedSector | |
31 | ped_div_round_to_nearest (PedSector numerator, PedSector divisor) | |
32 | { | |
33 | return (numerator + divisor/2) / divisor; |