mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 20:47:06 +00:00
Added new FreeSWITCH module mod_avmd or the Advanced Voicemail Detection Module.
It provides better detection than mod_vmd but is a little more CPU intensive than mod_vmd. Perhaps someone would like to CUDAfy this code?
This commit is contained in:
1 parent
596c001231
commit
10c6a30a59
15 files changed
+1104
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#ifndef __BUFFER_H__
|
||||
#include "buffer.h"
|
||||
#endif
|
||||
|
||||
extern size_t next_power_of_2(size_t v)
|
||||
{
|
||||
size_t prev;
|
||||
size_t tmp = 1;
|
||||
|
||||
v++;
|
||||
|
||||
do{
|
||||
prev = v;
|
||||
v &= ~tmp;
|
||||
tmp <<= 1;
|
||||
}while(v != 0);
|
||||
|
||||
prev <<= 1;
|
||||
|
||||
return prev;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user