for (i = 0; i < width; ++i)
{
WRITE (image, pixel++,
- ((values[i] >> 32) & 0xc0000000) | // A
- ((values[i] >> 18) & 0x3ff00000) | // R
- ((values[i] >> 12) & 0xffc00) | // G
- ((values[i] >> 6) & 0x3ff)); // B
+ ((values[i] >> 32) & 0xc0000000) |
+ ((values[i] >> 18) & 0x3ff00000) |
+ ((values[i] >> 12) & 0xffc00) |
+ ((values[i] >> 6) & 0x3ff));
}
}
for (i = 0; i < width; ++i)
{
WRITE (image, pixel++,
- ((values[i] >> 18) & 0x3ff00000) | // R
- ((values[i] >> 12) & 0xffc00) | // G
- ((values[i] >> 6) & 0x3ff)); // B
+ ((values[i] >> 18) & 0x3ff00000) |
+ ((values[i] >> 12) & 0xffc00) |
+ ((values[i] >> 6) & 0x3ff));
}
}
for (i = 0; i < width; ++i)
{
WRITE (image, pixel++,
- ((values[i] >> 32) & 0xc0000000) | // A
- ((values[i] >> 38) & 0x3ff) | // R
- ((values[i] >> 12) & 0xffc00) | // G
- ((values[i] << 14) & 0x3ff00000)); // B
+ ((values[i] >> 32) & 0xc0000000) |
+ ((values[i] >> 38) & 0x3ff) |
+ ((values[i] >> 12) & 0xffc00) |
+ ((values[i] << 14) & 0x3ff00000));
}
}
for (i = 0; i < width; ++i)
{
WRITE (image, pixel++,
- ((values[i] >> 38) & 0x3ff) | // R
- ((values[i] >> 12) & 0xffc00) | // G
- ((values[i] << 14) & 0x3ff00000)); // B
+ ((values[i] >> 38) & 0x3ff) |
+ ((values[i] >> 12) & 0xffc00) |
+ ((values[i] << 14) & 0x3ff00000));
}
}
uint32_t hwcap = aux.a_un.a_val;
if (getenv ("ARM_FORCE_HWCAP"))
hwcap = strtoul (getenv ("ARM_FORCE_HWCAP"), NULL, 0);
- // hardcode these values to avoid depending on specific versions
- // of the hwcap header, e.g. HWCAP_NEON
+ /* hardcode these values to avoid depending on specific
+ * versions of the hwcap header, e.g. HWCAP_NEON
+ */
arm_has_vfp = (hwcap & 64) != 0;
arm_has_iwmmxt = (hwcap & 512) != 0;
- // this flag is only present on kernel 2.6.29
+ /* this flag is only present on kernel 2.6.29 */
arm_has_neon = (hwcap & 4096) != 0;
}
else if (aux.a_type == AT_PLATFORM)
}
close (fd);
- // if we don't have 2.6.29, we have to do this hack; set
- // the env var to trust HWCAP.
+ /* if we don't have 2.6.29, we have to do this hack; set
+ * the env var to trust HWCAP.
+ */
if (!getenv ("ARM_TRUST_HWCAP") && arm_has_v7)
arm_has_neon = TRUE;
}