diff options
author | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2009-01-14 18:16:01 +0200 |
---|---|---|
committer | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2009-01-14 18:16:01 +0200 |
commit | 64bf5415f6b03a78aa83e8ecf95ebd5996bb7a28 (patch) | |
tree | 72f4ef6189f48066ef4f0dedf9edc22716f7bfd9 | |
parent | e4058babc81f509082da126c1052b1ce389f4e3b (diff) |
Rename inv32 -> inv.
-rw-r--r-- | unpremultiply-inv.c (renamed from unpremultiply-inv32.c) | 2 | ||||
-rw-r--r-- | unpremultiply-invb.c (renamed from unpremultiply-inv32b.c) | 2 | ||||
-rw-r--r-- | unpremultiply.c | 16 |
3 files changed, 10 insertions, 10 deletions
diff --git a/unpremultiply-inv32.c b/unpremultiply-inv.c index fbb5572..cc037f8 100644 --- a/unpremultiply-inv32.c +++ b/unpremultiply-inv.c @@ -42,7 +42,7 @@ static uint32_t const reciprocal_table[256] = { }; void -unpremultiply_with_inv32( +unpremultiply_with_inv( uint32_t * restrict dst, uint32_t const * restrict src, size_t num_pixels) diff --git a/unpremultiply-inv32b.c b/unpremultiply-invb.c index 4735a78..a2b17bf 100644 --- a/unpremultiply-inv32b.c +++ b/unpremultiply-invb.c @@ -48,7 +48,7 @@ static uint32_t const reciprocal_table[256] = { * runs of constant or solid pixels. When a run is identified it * falls into a special case loop for the duration of the run. */ void -unpremultiply_with_inv32b( +unpremultiply_with_invb( uint32_t * restrict dst, uint32_t const * restrict src, size_t num_pixels) diff --git a/unpremultiply.c b/unpremultiply.c index 322367b..1919a15 100644 --- a/unpremultiply.c +++ b/unpremultiply.c @@ -31,8 +31,8 @@ exit $? /* The methods we have available. */ void unpremultiply_with_sse2(uint32_t *dst, uint32_t const *src, size_t n); -void unpremultiply_with_inv32(uint32_t *dst, uint32_t const *src, size_t n); -void unpremultiply_with_inv32b(uint32_t *dst, uint32_t const *src, size_t n); +void unpremultiply_with_inv(uint32_t *dst, uint32_t const *src, size_t n); +void unpremultiply_with_invb(uint32_t *dst, uint32_t const *src, size_t n); void unpremultiply_with_lut(uint32_t *dst, uint32_t const *src, size_t n); void unpremultiply_with_lutb(uint32_t *dst, uint32_t const *src, size_t n); void unpremultiply_with_div(uint32_t *dst, uint32_t const *src, size_t n); @@ -212,8 +212,8 @@ main(int argc, char **argv) else if (0 == strcmp(argv[i], "div") || 0 == strcmp(argv[i], "lut") || 0 == strcmp(argv[i], "lutb") || - 0 == strcmp(argv[i], "inv32") || - 0 == strcmp(argv[i], "inv32b") || + 0 == strcmp(argv[i], "inv") || + 0 == strcmp(argv[i], "invb") || 0 == strcmp(argv[i], "sse2") || 0 == strcmp(argv[i], "copy") || 0 == strcmp(argv[i], "read") || @@ -250,14 +250,14 @@ main(int argc, char **argv) unpremultiply_with_lutb(dst, src, n); } } - else if (0 == strcmp(method, "inv32")) { + else if (0 == strcmp(method, "inv")) { while (nloops-- > 0) { - unpremultiply_with_inv32(dst, src, n); + unpremultiply_with_inv(dst, src, n); } } - else if (0 == strcmp(method, "inv32b")) { + else if (0 == strcmp(method, "invb")) { while (nloops-- > 0) { - unpremultiply_with_inv32b(dst, src, n); + unpremultiply_with_invb(dst, src, n); } } else if (0 == strcmp(method, "sse2")) { |