aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/proximity_info_utils.h
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-02-13 18:29:04 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-02-13 18:29:04 -0800
commit18cd7011f7e5444abf93a7ca7228b16ae862b108 (patch)
tree6c901539ef6ac4862e661b9a291de1d9ebcb41d9 /native/jni/src/proximity_info_utils.h
parentd4d515f4bfd47cc6b236177fd49d37a8354a9cdf (diff)
parent2834f522b78d57ee862c5444e389a3834ba6de63 (diff)
downloadlatinime-18cd7011f7e5444abf93a7ca7228b16ae862b108.tar.gz
latinime-18cd7011f7e5444abf93a7ca7228b16ae862b108.tar.xz
latinime-18cd7011f7e5444abf93a7ca7228b16ae862b108.zip
am 2834f522: Merge "Prep for GCC 4.6 that will be used in unbundled branches"
# Via Android (Google) Code Review (1) and Ken Wakasa (1) * commit '2834f522b78d57ee862c5444e389a3834ba6de63': Prep for GCC 4.6 that will be used in unbundled branches
Diffstat (limited to 'native/jni/src/proximity_info_utils.h')
-rw-r--r--native/jni/src/proximity_info_utils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/native/jni/src/proximity_info_utils.h b/native/jni/src/proximity_info_utils.h
index c50df57f9..51cafba2c 100644
--- a/native/jni/src/proximity_info_utils.h
+++ b/native/jni/src/proximity_info_utils.h
@@ -28,7 +28,7 @@
namespace latinime {
class ProximityInfoUtils {
public:
- static int getKeyIndexOf(const int keyCount, const int c,
+ static AK_FORCE_INLINE int getKeyIndexOf(const int keyCount, const int c,
const hash_map_compat<int, int> *const codeToKeyMap) {
if (keyCount == 0) {
// We do not have the coordinate data
@@ -45,7 +45,7 @@ class ProximityInfoUtils {
return NOT_AN_INDEX;
}
- static void initializeProximities(const int *const inputCodes,
+ static AK_FORCE_INLINE void initializeProximities(const int *const inputCodes,
const int *const inputXCoordinates, const int *const inputYCoordinates,
const int inputSize, const int *const keyXCoordinates,
const int *const keyYCoordinates, const int *const keyWidths, const int *keyHeights,
@@ -151,7 +151,7 @@ class ProximityInfoUtils {
return left < right && top < bottom && x >= left && x < right && y >= top && y < bottom;
}
- static void calculateProximities(const int *const keyXCoordinates,
+ static AK_FORCE_INLINE void calculateProximities(const int *const keyXCoordinates,
const int *const keyYCoordinates, const int *const keyWidths, const int *keyHeights,
const int *const proximityCharsArray, const int cellHeight, const int cellWidth,
const int gridWidth, const int mostCommonKeyWidth, const int keyCount,