[Issue 3632] modify float is float to do a bitwise compare
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 5 02:20:20 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=3632
--- Comment #31 from yebblies <yebblies at gmail.com> 2013-11-05 21:20:15 EST ---
(In reply to comment #30)
> Looks like we have bitwise comparison at runtime, but `f_is` generates some
> long assembly code in contrast to `i_is`:
> ---
> bool f_is(float f1, float f2)
> { return f1 is f2; }
>
> bool i_is(int i1, int i2)
> { return i1 is i2; }
> ---
>
> Can somebody explain what currently does `float is float` do in runtime?
Calls memcmp (
https://github.com/D-Programming-Language/dmd/pull/724/files#diff-6e3ab8a500e476994f345ede433811bbR2479
)
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list