Opened 14 years ago

Closed 14 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:
Platform: All

Description

Attachments (1)

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

Download all attachments as: .zip

Change History (7)

by MrSunshine, 14 years ago

Attachment: haiku-modfl.patch added

Patch to add modfl to haiku libroot.so

comment:1 by MrSunshine, 14 years ago

patch: 01

comment:2 by MrSunshine, 14 years ago

Version: R1/alpha2R1/Development

comment:3 by zooey, 14 years ago

Owner: changed from axeld to zooey
Status: newassigned

comment:4 by MrSunshine, 14 years ago

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 by zooey, 14 years ago

Status: assignedin-progress

comment:6 by zooey, 14 years ago

Resolution: fixed
Status: in-progressclosed

Applied in hrev37904, thanks.

Note: See TracTickets for help on using tickets.