Opened 9 years ago

Closed 9 years ago

#6418 closed enhancement (fixed)

Missing modfl with patch

Reported by: MrSunshine Owned by: zooey
Priority: normal Milestone: R1
Component: System/libroot.so Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Attachments (1)

haiku-modfl.patch (3.3 KB) - added by MrSunshine 9 years ago.
Patch to add modfl to haiku libroot.so

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by MrSunshine

Attachment: haiku-modfl.patch added

Patch to add modfl to haiku libroot.so

comment:1 Changed 9 years ago by MrSunshine

Has a Patch: set

comment:2 Changed 9 years ago by MrSunshine

Version: R1/alpha2R1/Development

comment:3 Changed 9 years ago by zooey

Owner: changed from axeld to zooey
Status: newassigned

comment:4 Changed 9 years ago by MrSunshine

tested using

#include <stdio.h>
#include <math.h>

int main()
{
	long double d = 6.242341512321321;

	long double intPart;
	long double doublePart = modfl(d, &intPart);

	printf("double: %.15Lf\n", d);
	printf("doublePart: %.15Lf, intPart: %.15Lf\n", doublePart, intPart);
}

gives same result on haiku gcc2 and gcc4 as it does in linux, do not know how much more i can test it? :)

comment:5 Changed 9 years ago by zooey

Status: assignedin-progress

comment:6 Changed 9 years ago by zooey

Resolution: fixed
Status: in-progressclosed

Applied in hrev37904, thanks.

Note: See TracTickets for help on using tickets.