diff options
author | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
commit | 871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch) | |
tree | 8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/include/linux/reciprocal_div.h | |
parent | 9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff) | |
download | FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2 FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip |
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized.
Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/include/linux/reciprocal_div.h')
-rw-r--r-- | ANDROID_3.4.5/include/linux/reciprocal_div.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/ANDROID_3.4.5/include/linux/reciprocal_div.h b/ANDROID_3.4.5/include/linux/reciprocal_div.h deleted file mode 100644 index f9c90b33..00000000 --- a/ANDROID_3.4.5/include/linux/reciprocal_div.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef _LINUX_RECIPROCAL_DIV_H -#define _LINUX_RECIPROCAL_DIV_H - -#include <linux/types.h> - -/* - * This file describes reciprocical division. - * - * This optimizes the (A/B) problem, when A and B are two u32 - * and B is a known value (but not known at compile time) - * - * The math principle used is : - * Let RECIPROCAL_VALUE(B) be (((1LL << 32) + (B - 1))/ B) - * Then A / B = (u32)(((u64)(A) * (R)) >> 32) - * - * This replaces a divide by a multiply (and a shift), and - * is generally less expensive in CPU cycles. - */ - -/* - * Computes the reciprocal value (R) for the value B of the divisor. - * Should not be called before each reciprocal_divide(), - * or else the performance is slower than a normal divide. - */ -extern u32 reciprocal_value(u32 B); - - -static inline u32 reciprocal_divide(u32 A, u32 R) -{ - return (u32)(((u64)A * R) >> 32); -} -#endif |