Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 153446 Details for
Bug 237872
[PPC] can't print a 128-bit long double variable
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Testcase (reproducibility code, not a GDB style testcase).
bz237637-test.c (text/plain), 700 bytes, created by
Jan Kratochvil
on 2007-04-25 19:47:18 UTC
(
hide
)
Description:
Testcase (reproducibility code, not a GDB style testcase).
Filename:
MIME Type:
Creator:
Jan Kratochvil
Created:
2007-04-25 19:47:18 UTC
Size:
700 bytes
patch
obsolete
>#include <stdio.h> >#include <string.h> > >int sld = 16; > >void >long_pld(int i, long double lf, unsigned char * vp) >{ > int j; > > printf("%3d: %35.34Lf", i, lf); > printf(" "); > printf("<"); > for (j = 0; j < sld; j++) { > printf("%02x", *vp++); > } > printf(">\n"); > >} > >int main(void) >{ > long double ld0 = 2.0; > long double ld1 = 1.0; > long double ld2; > int i; > unsigned char * vp1; > > printf("--- 128 bit Long double\n"); > printf("Size of long double = %ld\n", sizeof(ld0)); > for (i = 0; i < 60; i++) { > ld1 = ld1/2.0; > } > ld2 = ld0 + ld1; > vp1 = (unsigned char *)&ld2; > long_pld(i, ld2, vp1); /* break here, print ld2, then continue */ > > printf("--- Normal end\n"); > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 237872
: 153446 |
153447