]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use __builtin_ffsll() from gcc instead of ffssll() to fix a FreeBSD build error.
authorRussell Bryant <russell@russellbryant.com>
Tue, 1 Dec 2009 23:56:14 +0000 (23:56 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 1 Dec 2009 23:56:14 +0000 (23:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@232017 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/translate.c

index fbe6e5852625fe2ff4a3e70ab6058f872100c5ea..abbdadacab47b442c57033ff3ad2623ad1e0d9fc 100644 (file)
@@ -72,7 +72,7 @@ static struct translator_path tr_matrix[MAX_FORMAT][MAX_FORMAT];
 /*! \brief returns the index of the lowest bit set */
 static force_inline int powerof(format_t d)
 {
-       int x = ffsll(d);
+       int x = __builtin_ffsll(d);
 
        if (x)
                return x - 1;