Skip to content

Commit

Permalink
Not needed since memcpy is used here
Browse files Browse the repository at this point in the history
  • Loading branch information
homm committed Jul 7, 2024
1 parent 4ae7252 commit 1cf6525
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/libImaging/Pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,6 @@ void
ImagingPackRGB(UINT8 *out, const UINT8 *in, int pixels) {
int i = 0;
/* RGB triplets */
#ifdef __sparc
/* SPARC CPUs cannot read integers from nonaligned addresses. */
for (; i < pixels; i++) {
out[0] = in[R];
out[1] = in[G];
out[2] = in[B];
out += 3;
in += 4;
}
#else
for (; i < pixels - 1; i++) {
memcpy(out, in + i * 4, 4);
out += 3;
Expand All @@ -278,7 +268,6 @@ ImagingPackRGB(UINT8 *out, const UINT8 *in, int pixels) {
out[2] = in[i * 4 + B];
out += 3;
}
#endif
}

void
Expand Down

0 comments on commit 1cf6525

Please sign in to comment.