canCombineSinCosLibcall() would previously combine sin+cos into sincos for
GNUX32/GNUEABI/GNUEABIHF regardless of whether UnsafeFPMath were set or not.
However, GNU would only combine them for UnsafeFPMath because sincos does not
set errno like sin and cos do. It seems likely that this is an oversight.
Details
Diff Detail
Event Timeline
This looks ok to me, but better to get more feed back from other people, as I was not really in the loop for sin/cos thing. :)
I think it's just an omission to. sincos is definitely in my local copy of libm.so. I say go for it! (And thanks for the work).
Tim.
Actually, it looks like it's in the androideabi too (since 2.3), so it might be a good idea to add that.
Tim.
Thanks.
Is this combine beneficial for android at the moment? According to https://android.googlesource.com/platform/bionic/+/master/libm/sincos.c, android's sincos uses -O0 and just forwards the call to sin and cos. It looks like you'd be getting two calls for the price of three.
I left androideabi alone in the commit since I think it's slower to call sincos than to call sin and cos separately in bionic.