summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Harris <mark.hsj@gmail.com>2015-08-04 17:53:07 -0700
committerTimothy B. Terriberry <tterribe@xiph.org>2015-08-04 17:56:13 -0700
commit348e6946c187eb68839e71a03101d75b5865a389 (patch)
tree468c7f80852197aa0d3a97dcc66b968aaf51f3d6
parentef8676867777ee1024a8c4a024cdd230c51d1d6a (diff)
downloadopus-348e6946c187eb68839e71a03101d75b5865a389.tar.gz
Eliminate signed division overhead in align()
Signed-off-by: Timothy B. Terriberry <tterribe@xiph.org>
-rw-r--r--src/opus_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opus_private.h b/src/opus_private.h
index 5bbd7dce..3b62eed0 100644
--- a/src/opus_private.h
+++ b/src/opus_private.h
@@ -114,7 +114,7 @@ static OPUS_INLINE int align(int i)
{
struct foo {char c; union { void* p; opus_int32 i; opus_val32 v; } u;};
- int alignment = offsetof(struct foo, u);
+ unsigned int alignment = offsetof(struct foo, u);
/* Optimizing compilers should optimize div and multiply into and
for all sensible alignment values. */