[PATCH:xpr] Remove unneeded uses of <math.h> & -lm

Alan Coopersmith alan.coopersmith at oracle.com
Sat Nov 16 10:23:47 PST 2013


On 11/16/13 07:12 AM, Gaetan Nadon wrote:
> On 13-11-16 02:05 AM, Alan Coopersmith wrote:
>> Can't see why they were ever needed.
>>
>> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
>> ---
>>   Makefile.am |    2 +-
>>   x2pmp.c     |    1 -
>>   2 files changed, 1 insertion(+), 2 deletions(-)
>
> If sqrt won't be used in the future (educated guess)
> If all supported platforms have a correct C implementation of math
> functions currently used

There's no math functions currently used - the closest I see is abs(),
but that's in the standard C library, not libm.  x2pmp doesn't even
declare any variables of float or double types.  (Other files do, but
they only seem to do simple arithmetic with them, not call any libm
functions.)


-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list