Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1019306 Details for
Bug 1127544
openjpeg links with -ffast-math, modifies floating point handling of all loaders of the library
Home
New
Search
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.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
diagnostic script
y.py (text/plain), 1.57 KB, created by
Petr Viktorin
on 2015-04-27 12:14:39 UTC
(
hide
)
Description:
diagnostic script
Filename:
MIME Type:
Creator:
Petr Viktorin
Created:
2015-04-27 12:14:39 UTC
Size:
1.57 KB
patch
obsolete
># NOTE: Specific to the x84_64 architecture > >from __future__ import print_function >from cffi import FFI >ffi = FFI() >ffi.cdef(""" > // From /usr/include/bits/fenv.h > typedef struct { > unsigned short int __control_word; > unsigned short int __glibc_reserved1; > unsigned short int __status_word; > unsigned short int __glibc_reserved2; > unsigned short int __tags; > unsigned short int __glibc_reserved3; > unsigned int __eip; > unsigned short int __cs_selector; > unsigned int __opcode:11; > unsigned int __glibc_reserved4:5; > unsigned int __data_offset; > unsigned short int __data_selector; > unsigned short int __glibc_reserved5; > unsigned int __mxcsr; > } fenv_t; > > // From fenv(3) > int fegetenv(fenv_t *envp); > int fesetenv(const fenv_t *envp); >""") > >def print_fenv(): > print('Printing out floating point environment; float value: ', float('4.74303020008e-322')) > fenv = ffi.new("fenv_t[1]") > C.fegetenv(fenv) > for name in '''__control_word __glibc_reserved1 __status_word > __glibc_reserved2 __tags __glibc_reserved3 __eip __cs_selector > __opcode __glibc_reserved4 __data_offset __data_selector > __glibc_reserved5 __mxcsr > '''.split(): > value = getattr(fenv[0], name) > print(name, ':', hex(value), bin(value)) > >C = ffi.dlopen(None) > >saved = ffi.new("fenv_t[1]") >C.fegetenv(saved) > >print_fenv() > >print('importing osgeo') >import osgeo > >print_fenv() > >print('resetting FP environment') >C.fesetenv(saved) > >print_fenv() >
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 1127544
: 1019306