diff options
| author | Jens Axboe <jaxboe@fusionio.com> | 2010-11-16 04:09:42 -0500 |
|---|---|---|
| committer | Jens Axboe <jaxboe@fusionio.com> | 2010-11-16 04:09:42 -0500 |
| commit | a02056349cdea2252cd2b21643ebf025e83a29f2 (patch) | |
| tree | b7c889d6cbe8e7188d07d99a5c9da858c53a5b6c /include/linux/math64.h | |
| parent | 34db1d595ef6f183fbc1e42cda45a3dfa0035258 (diff) | |
| parent | e53beacd23d9cb47590da6a7a7f6d417b941a994 (diff) | |
Merge branch 'v2.6.37-rc2' into for-2.6.38/core
Diffstat (limited to 'include/linux/math64.h')
| -rw-r--r-- | include/linux/math64.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/math64.h b/include/linux/math64.h index c87f1528703a..23fcdfcba81b 100644 --- a/include/linux/math64.h +++ b/include/linux/math64.h | |||
| @@ -35,6 +35,14 @@ static inline u64 div64_u64(u64 dividend, u64 divisor) | |||
| 35 | return dividend / divisor; | 35 | return dividend / divisor; |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | /** | ||
| 39 | * div64_s64 - signed 64bit divide with 64bit divisor | ||
| 40 | */ | ||
| 41 | static inline s64 div64_s64(s64 dividend, s64 divisor) | ||
| 42 | { | ||
| 43 | return dividend / divisor; | ||
| 44 | } | ||
| 45 | |||
| 38 | #elif BITS_PER_LONG == 32 | 46 | #elif BITS_PER_LONG == 32 |
| 39 | 47 | ||
| 40 | #ifndef div_u64_rem | 48 | #ifndef div_u64_rem |
| @@ -53,6 +61,10 @@ extern s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder); | |||
| 53 | extern u64 div64_u64(u64 dividend, u64 divisor); | 61 | extern u64 div64_u64(u64 dividend, u64 divisor); |
| 54 | #endif | 62 | #endif |
| 55 | 63 | ||
| 64 | #ifndef div64_s64 | ||
| 65 | extern s64 div64_s64(s64 dividend, s64 divisor); | ||
| 66 | #endif | ||
| 67 | |||
| 56 | #endif /* BITS_PER_LONG */ | 68 | #endif /* BITS_PER_LONG */ |
| 57 | 69 | ||
| 58 | /** | 70 | /** |
