aboutsummaryrefslogtreecommitdiffstats
path: root/ulaw.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-10 19:05:48 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-10 19:05:48 +0000
commit9ded857bf6bed71f477322c64d4813ebb7856e37 (patch)
tree33176ce63675a2ab5cbbbf7cf1c5bc5f313bf7d1 /ulaw.c
parent0ba03dd946dd3a888651da225930033e0e26c973 (diff)
Whitespace changes only
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37345 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'ulaw.c')
-rw-r--r--ulaw.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ulaw.c b/ulaw.c
index a2e4d831e..2735f6cce 100644
--- a/ulaw.c
+++ b/ulaw.c
@@ -85,22 +85,22 @@ static unsigned char linear2ulaw(short sample)
void ast_ulaw_init(void)
{
int i;
- for(i = 0;i < 256;i++) {
- short mu,e,f,y;
- static short etab[]={0,132,396,924,1980,4092,8316,16764};
+ for (i = 0; i < 256; i++) {
+ short mu, e, f, y;
+ static short etab[] = {0,132,396,924,1980,4092,8316,16764};
- mu = 255-i;
- e = (mu & 0x70)/16;
+ mu = 255 - i;
+ e = (mu & 0x70) / 16;
f = mu & 0x0f;
y = f * (1 << (e + 3));
y += etab[e];
- if (mu & 0x80) y = -y;
- __ast_mulaw[i] = y;
+ if (mu & 0x80)
+ y = -y;
+ __ast_mulaw[i] = y;
}
/* set up the reverse (mu-law) conversion table */
- for(i = -32768; i < 32768; i++) {
+ for (i = -32768; i < 32768; i++) {
__ast_lin2mu[((unsigned short)i) >> 2] = linear2ulaw(i);
}
-
}