Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98fea600 authored by Ken Wakasa's avatar Ken Wakasa Committed by Android (Google) Code Review
Browse files

Merge "Prep for GCC 4.7"

parents 72fd0968 2a6f58d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -246,7 +246,7 @@ static inline int childrenAddressSize(const uint8_t flags) {
    /* See the note in attributeAddressSize. The same applies here */
    /* See the note in attributeAddressSize. The same applies here */
}
}


static inline int shortcutByteSize(const uint8_t *const dict, const int pos) {
static AK_FORCE_INLINE int shortcutByteSize(const uint8_t *const dict, const int pos) {
    return ((int)(dict[pos] << 8)) + (dict[pos + 1]);
    return ((int)(dict[pos] << 8)) + (dict[pos + 1]);
}
}


+4 −4
Original line number Original line Diff line number Diff line
@@ -167,15 +167,15 @@ static inline void prof_out(void) {
    }
    }
    AKLOGI("Total time is %6.3f ms.",
    AKLOGI("Total time is %6.3f ms.",
            profile_buf[PROF_BUF_SIZE - 1] * 1000.0f / static_cast<float>(CLOCKS_PER_SEC));
            profile_buf[PROF_BUF_SIZE - 1] * 1000.0f / static_cast<float>(CLOCKS_PER_SEC));
    float all = 0;
    float all = 0.0f;
    for (int i = 0; i < PROF_BUF_SIZE - 1; ++i) {
    for (int i = 0; i < PROF_BUF_SIZE - 1; ++i) {
        all += profile_buf[i];
        all += profile_buf[i];
    }
    }
    if (all == 0) all = 1;
    if (all < 1.0f) all = 1.0f;
    for (int i = 0; i < PROF_BUF_SIZE - 1; ++i) {
    for (int i = 0; i < PROF_BUF_SIZE - 1; ++i) {
        if (profile_buf[i]) {
        if (profile_buf[i] > 0.0f) {
            AKLOGI("(%d): Used %4.2f%%, %8.4f ms. Called %d times.",
            AKLOGI("(%d): Used %4.2f%%, %8.4f ms. Called %d times.",
                    i, (profile_buf[i] * 100 / all),
                    i, (profile_buf[i] * 100.0f / all),
                    profile_buf[i] * 1000.0f / static_cast<float>(CLOCKS_PER_SEC),
                    profile_buf[i] * 1000.0f / static_cast<float>(CLOCKS_PER_SEC),
                    profile_counter[i]);
                    profile_counter[i]);
        }
        }
+1 −1
Original line number Original line Diff line number Diff line
@@ -17,7 +17,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.inputmethod.latin.tests">
    package="com.android.inputmethod.latin.tests">


    <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="16" />
    <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="16" />


    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />