Mercurial > libavcodec.hg
comparison ra144.c @ 6833:37464a7b3f59 libavcodec
Use ff_sqrt() function instead of using a table
author | vitor |
---|---|
date | Wed, 21 May 2008 16:33:49 +0000 |
parents | 9584a95fefcd |
children | bf3bc36715e6 |
comparison
equal
deleted
inserted
replaced
6832:9584a95fefcd | 6833:37464a7b3f59 |
---|---|
69 while (x > 0xfff) { | 69 while (x > 0xfff) { |
70 s++; | 70 s++; |
71 x = x >> 2; | 71 x = x >> 2; |
72 } | 72 } |
73 | 73 |
74 return (sqrt_table[x] << s) << 2; | 74 return (ff_sqrt(x << 20) << s) << 2; |
75 } | 75 } |
76 | 76 |
77 /* do 'voice' */ | 77 /* do 'voice' */ |
78 static void do_voice(const int *a1, int *a2) | 78 static void do_voice(const int *a1, int *a2) |
79 { | 79 { |