cosmetics: normalize VP8GetCPUInfo checks

- use '!= NULL'
+ dec_neon/STORE_WHT: align '\'s

Change-Id: I0f0ce49bd9c58e771bafb24c51c070d5ebd77e53
This commit is contained in:
James Zern 2014-02-28 18:43:49 -08:00
parent e3dd9243cb
commit 82ae1bf299
4 changed files with 5 additions and 5 deletions

View File

@ -715,7 +715,7 @@ void VP8DspInit(void) {
VP8SimpleHFilter16i = SimpleHFilter16i;
// If defined, use CPUInfo() to overwrite some pointers with faster versions.
if (VP8GetCPUInfo) {
if (VP8GetCPUInfo != NULL) {
#if defined(WEBP_USE_SSE2)
if (VP8GetCPUInfo(kSSE2)) {
VP8DspInitSSE2();

View File

@ -360,12 +360,12 @@ static void TransformDC(const int16_t* in, uint8_t* dst) {
//------------------------------------------------------------------------------
#define STORE_WHT(dst, col, row01, row23) do { \
#define STORE_WHT(dst, col, row01, row23) do { \
*dst = vgetq_lane_s32(row01.val[0], col); out += 16; \
*dst = vgetq_lane_s32(row01.val[1], col); out += 16; \
*dst = vgetq_lane_s32(row23.val[0], col); out += 16; \
*dst = vgetq_lane_s32(row23.val[1], col); out += 16; \
} while (0) \
} while (0)
static void TransformWHT(const int16_t* in, int16_t* out) {
int32x4x2_t tmp0; // tmp[0..7]

View File

@ -740,7 +740,7 @@ void VP8EncDspInit(void) {
VP8Copy4x4 = Copy4x4;
// If defined, use CPUInfo() to overwrite some pointers with faster versions.
if (VP8GetCPUInfo) {
if (VP8GetCPUInfo != NULL) {
#if defined(WEBP_USE_SSE2)
if (VP8GetCPUInfo(kSSE2)) {
VP8EncDspInitSSE2();

View File

@ -284,7 +284,7 @@ void WebPRescalerInit(WebPRescaler* const wrk, int src_width, int src_height,
if (WebPRescalerImportRow == NULL) {
WebPRescalerImportRow = ImportRowC;
WebPRescalerExportRow = ExportRowC;
if (VP8GetCPUInfo) {
if (VP8GetCPUInfo != NULL) {
#if defined(WEBP_USE_MIPS32)
if (VP8GetCPUInfo(kMIPS32)) {
WebPRescalerImportRow = ImportRowMIPS;