Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 9 - ARM: runnable/builtin.d floating point equality fails
Summary: ARM: runnable/builtin.d floating point equality fails
Status: RESOLVED FIXED
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: development
Hardware: ARM Linux
: --- trivial
Assignee: Johannes Pfau
URL:
Depends on:
Blocks:
 
Reported: 2012-09-25 09:33 CEST by Johannes Pfau
Modified: 2013-05-29 20:37 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Pfau 2012-09-25 09:33:44 CEST
I guess the exact value doesn't matter here, so we could just compare the result and allow a certain delta? What would be a useful delta here?

static assert(sin(6.8) == 0x1.f9f8d9aea10fdf1cp-2);
----
runnable/builtin.d:15: Error: static assert (4.94113351138608159e-1L == 4.94113351138608325e-1L) is false
----