[FFmpeg-devel] [PATCH] all: use M_SQRT1_2, M_SQRT2, M_PI

Nicolas George george at nsup.org
Thu Nov 19 20:33:09 CET 2015


Le nonidi 29 brumaire, an CCXXIV, Ganesh Ajjanagadde a écrit :
> Exactly. Can't pull the source for bsd easily, but it likely is
> identical to openlibm since openlibm imported from freebsd:
> https://github.com/JuliaLang/openlibm/blob/master/include/openlibm_math.h
> which has an identical definition to gnu libm for M_PI.

FreeBSD uses 3.14159265358979323846, same as GNU:

https://svnweb.freebsd.org/base/head/lib/msun/src/math.h?revision=271651&view=markup

This gives 10^-20 accuracy, or a 69 bits mantissa, this is more than the 64
bits mantissa offered by i387 floating point unit, and way more than the 52
bits mantissa of usual floats.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151119/c4d1599b/attachment.sig>


More information about the ffmpeg-devel mailing list