[asterisk-commits] russell: trunk r232017 - /trunk/main/translate.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 1 17:56:18 CST 2009


Author: russell
Date: Tue Dec  1 17:56:14 2009
New Revision: 232017

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=232017
Log:
Use __builtin_ffsll() from gcc instead of ffssll() to fix a FreeBSD build error.

Modified:
    trunk/main/translate.c

Modified: trunk/main/translate.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/translate.c?view=diff&rev=232017&r1=232016&r2=232017
==============================================================================
--- trunk/main/translate.c (original)
+++ trunk/main/translate.c Tue Dec  1 17:56:14 2009
@@ -72,7 +72,7 @@
 /*! \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;




More information about the asterisk-commits mailing list