Bug 90053

Summary: glxgears should use sincos(3)
Product: [Retired] Red Hat Raw Hide Reporter: Mike A. Harris <mharris>
Component: XFree86Assignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED UPSTREAM QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: low    
Version: 1.0Keywords: Triaged
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-01 09:21:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Mike A. Harris 2003-05-01 18:15:54 UTC
A rather low priority thing to fiddle with sometime when bored perhaps.

<jakub> btw: glxgears should be tought about sincos(3)
<jakub> I saw in ltrace lots of sin calls followed by cos calls with the same

Comment 1 John Ellson 2003-06-13 18:58:54 UTC
sincos() is not very portable.   Here is the configure test and a sincos
macro that we've used with success in graphviz:

--------------------- configure test -----------------------

AC_MSG_CHECKING(if have working sincos())
        #include <stdio.h>
        #include <assert.h>
        #define PI 3.14159265358979323846
        extern void sincos(double x, double *s, double *c);
        int main () {
                double sinx=0.0, cosx=1.0;
                return 0;
        AC_DEFINE_UNQUOTED(HAVE_SINCOS,1,[Define if libm provides a *working*
sincos function])
        AC_MSG_RESULT(no - assumed because cross-compiling)

------------------ macro ---------------------

void sincos(x,s,c) double x,*s,*c; { *s = sin(x); *c = cos(x); }
extern void sincos(double x, double *s, double *c);

Comment 3 Mike A. Harris 2005-02-01 09:21:04 UTC
Filed bug report upstream to track this low priority enhancement
suggestion, in case some enterprising new X developer wants a simple
task to dip their toes into Imake et al.:


Setting our bug status to "UPSTREAM" to continue tracking it
in centralized location instead.