[asterisk-commits] tilghman: trunk r233239 - /trunk/main/translate.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 4 15:06:25 CST 2009


Author: tilghman
Date: Fri Dec  4 15:06:22 2009
New Revision: 233239

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=233239
Log:
Using the builtin function breaks OpenBSD

Modified:
    trunk/main/translate.c

Modified: trunk/main/translate.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/translate.c?view=diff&rev=233239&r1=233238&r2=233239
==============================================================================
--- trunk/main/translate.c (original)
+++ trunk/main/translate.c Fri Dec  4 15:06:22 2009
@@ -72,7 +72,7 @@
 /*! \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;




More information about the asterisk-commits mailing list