From: Russell Bryant Date: Tue, 1 Dec 2009 23:56:14 +0000 (+0000) Subject: Use __builtin_ffsll() from gcc instead of ffssll() to fix a FreeBSD build error. X-Git-Tag: 11.0.0-beta1~3806 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ed9e34c0d309c66bd42db7ee92ffaf57410ff81;p=thirdparty%2Fasterisk.git Use __builtin_ffsll() from gcc instead of ffssll() to fix a FreeBSD build error. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@232017 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/translate.c b/main/translate.c index fbe6e58526..abbdadacab 100644 --- a/main/translate.c +++ b/main/translate.c @@ -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;