Skip to content

Commit 5cd89c3

Browse files
committed
Style cleanups
1 parent a9f23ad commit 5cd89c3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Source/astcenc_compress_symbolic.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ static bool realign_weights(
101101
epd = select(epd, vint4::zero(), plane_mask);
102102

103103
endpnt0f[pa_idx] = int_to_float(endpnt0[pa_idx]);
104-
offset[pa_idx] = int_to_float(epd);
105-
offset[pa_idx] = offset[pa_idx] * (1.0f / 64.0f);
104+
offset[pa_idx] = int_to_float(epd) * (1.0f / 64.0f);
106105
}
107106

108107
// Create an unquantized weight grid for this decimation level

Source/astcenc_image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ void fetch_imageblock(
220220
{
221221
int xi = astc::min(xpos + x, xsize - 1);
222222

223-
vfloat4 datav = loader(plane, (4 * xsize * yi) + (4 * xi ));
223+
vfloat4 datav = loader(plane, (4 * xsize * yi) + (4 * xi));
224224
datav = swizzler(datav, swz);
225225
datav = converter(datav, lns_mask);
226226

Source/astcenc_weight_align.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ static void compute_angular_endpoints_for_quant_levels(
255255
vfloat4 best_results[40];
256256

257257
// Initialize the array to some safe defaults
258+
promise(max_quant_steps > 0);
258259
for (int i = 0; i < (max_quant_steps + 4); i++)
259260
{
260261
// Lane<0> = Best error

0 commit comments

Comments
 (0)