Additional code formatting tweaks

... detected with an improved version of our checkstyle script
This commit is contained in:
DRC
2018-04-08 12:49:05 -05:00
parent 450306a84b
commit b628d6934f
6 changed files with 20 additions and 19 deletions

View File

@@ -56,7 +56,7 @@ static void byteReverse(unsigned char *buf, unsigned int longs)
{ {
uint32 t; uint32 t;
do { do {
t = (uint32) ((unsigned int)buf[3] << 8 | buf[2]) << 16 | t = (uint32)((unsigned int)buf[3] << 8 | buf[2]) << 16 |
((unsigned int)buf[1] << 8 | buf[0]); ((unsigned int)buf[1] << 8 | buf[0]);
*(uint32 *) buf = t; *(uint32 *) buf = t;
buf += 4; buf += 4;

View File

@@ -301,7 +301,8 @@ process_SOFn(int marker)
case M_SOF10: process = "Progressive, arithmetic coding"; break; case M_SOF10: process = "Progressive, arithmetic coding"; break;
case M_SOF11: process = "Lossless, arithmetic coding"; break; case M_SOF11: process = "Lossless, arithmetic coding"; break;
case M_SOF13: process = "Differential sequential, arithmetic coding"; break; case M_SOF13: process = "Differential sequential, arithmetic coding"; break;
case M_SOF14: process = "Differential progressive, arithmetic coding"; break; case M_SOF14:
process = "Differential progressive, arithmetic coding"; break;
case M_SOF15: process = "Differential lossless, arithmetic coding"; break; case M_SOF15: process = "Differential lossless, arithmetic coding"; break;
default: process = "Unknown"; break; default: process = "Unknown"; break;
} }

View File

@@ -30,8 +30,8 @@
#include "jsimd_mmi.h" #include "jsimd_mmi.h"
#define F_0_081 ((short) 5329) /* FIX(0.08131) */ #define F_0_081 ((short)5329) /* FIX(0.08131) */
#define F_0_114 ((short) 7471) /* FIX(0.11400) */ #define F_0_114 ((short)7471) /* FIX(0.11400) */
#define F_0_168 ((short)11059) /* FIX(0.16874) */ #define F_0_168 ((short)11059) /* FIX(0.16874) */
#define F_0_250 ((short)16384) /* FIX(0.25000) */ #define F_0_250 ((short)16384) /* FIX(0.25000) */
#define F_0_299 ((short)19595) /* FIX(0.29900) */ #define F_0_299 ((short)19595) /* FIX(0.29900) */