Using the builtin function breaks OpenBSD 4.2
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 4 Dec 2009 21:06:22 +0000 (21:06 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 4 Dec 2009 21:06:22 +0000 (21:06 +0000)
(closes issue #16395)
 Reported by: jtodd

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@233239 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/translate.c

index abbdada..fbe6e58 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 = __builtin_ffsll(d);
+       int x = ffsll(d);
 
        if (x)
                return x - 1;