Movatterモバイル変換


[0]ホーム

URL:


OpenBSD CVS


[BACK]Up to[local] /src /lib /libm /src

Request diff between arbitrary revisions


Default branch: MAIN


Revision1.7 / (download) -annotate -[select for diffs],Thu Oct 14 21:30:00 2021 UTC (4 years, 1 month ago) bykettenis
Branch:MAIN
CVS Tags:OPENBSD_7_8_BASE,OPENBSD_7_8,OPENBSD_7_7_BASE,OPENBSD_7_7,OPENBSD_7_6_BASE,OPENBSD_7_6,OPENBSD_7_5_BASE,OPENBSD_7_5,OPENBSD_7_4_BASE,OPENBSD_7_4,OPENBSD_7_3_BASE,OPENBSD_7_3,OPENBSD_7_2_BASE,OPENBSD_7_2,OPENBSD_7_1_BASE,OPENBSD_7_1,HEAD
Changes since1.6: +27 -61 lines
Diff to previous1.6 (colored)

Replacelrint(3),lrintf(3),llrint(3) andllrintf(3) implementations withthe same implementation that we're already using forlrintl(3) andllrintl(3).The old implementations were derived from code from NetBSD that didn't passthe lib/libm/msun/lrint_test regress test.  NetBSD replaced theirimplementation with the FreeBSD implementation of this code which we werealready using forlrintl(3) andllrintl(3).  This fixes the regress test.ok bluhm@, millert@

Revision1.6 / (download) -annotate -[select for diffs],Mon Sep 12 19:47:02 2016 UTC (9 years, 2 months ago) byguenther
Branch:MAIN
CVS Tags:OPENBSD_7_0_BASE,OPENBSD_7_0,OPENBSD_6_9_BASE,OPENBSD_6_9,OPENBSD_6_8_BASE,OPENBSD_6_8,OPENBSD_6_7_BASE,OPENBSD_6_7,OPENBSD_6_6_BASE,OPENBSD_6_6,OPENBSD_6_5_BASE,OPENBSD_6_5,OPENBSD_6_4_BASE,OPENBSD_6_4,OPENBSD_6_3_BASE,OPENBSD_6_3,OPENBSD_6_2_BASE,OPENBSD_6_2,OPENBSD_6_1_BASE,OPENBSD_6_1
Changes since1.5: +2 -1 lines
Diff to previous1.5 (colored)

Reduce libm's exports and make internal calls go direct.All dependencies on libc are now via reserved/standardized names.ok kettenis@ millert@ deraadt@

Revision1.5 / (download) -annotate -[select for diffs],Wed Apr 20 21:32:59 2011 UTC (14 years, 7 months ago) bymartynas
Branch:MAIN
CVS Tags:OPENBSD_6_0_BASE,OPENBSD_6_0,OPENBSD_5_9_BASE,OPENBSD_5_9,OPENBSD_5_8_BASE,OPENBSD_5_8,OPENBSD_5_7_BASE,OPENBSD_5_7,OPENBSD_5_6_BASE,OPENBSD_5_6,OPENBSD_5_5_BASE,OPENBSD_5_5,OPENBSD_5_4_BASE,OPENBSD_5_4,OPENBSD_5_3_BASE,OPENBSD_5_3,OPENBSD_5_2_BASE,OPENBSD_5_2,OPENBSD_5_1_BASE,OPENBSD_5_1,OPENBSD_5_0_BASE,OPENBSD_5_0
Changes since1.4: +2 -2 lines
Diff to previous1.4 (colored)

Trick GCC optimizer into clipping any extra precision by making wvolatile;  a similar hack was already being used in lrintf().This will make rint and {,l}lrint family functions actually work;i.e. on m68k rintf(8.6F) was 8.625.

Revision1.4 / (download) -annotate -[select for diffs],Sun Apr 17 13:59:54 2011 UTC (14 years, 7 months ago) bymartynas
Branch:MAIN
Changes since1.3: +2 -2 lines
Diff to previous1.3 (colored)

The {,l}lround{,f} implementations are based on {,l}lrint{,f},therefore affected by the same bugs I've fixed a week ago.The high part was being clipped for all exponents greater or equalto 52.  Fix this to use RESTYPE_BITS instead;  also make the codeconsistent.

Revision1.3 / (download) -annotate -[select for diffs],Sun Apr 10 20:42:09 2011 UTC (14 years, 7 months ago) bymartynas
Branch:MAIN
Changes since1.2: +3 -3 lines
Diff to previous1.2 (colored)

The {,l}lrint{,f} functions avoid to shift results by more than 31bits, because "behavior is implementation defined in this case".However, this is wrong;  behavior is undefined if the right operandis greater than or equal to the width of the promoted left operand.This broke {,l}lrint{,f} (64-bit architectures), and llrint{,f}(32-bit architectures) where results are actually 64-bit values.The high part was clipped for all exponents greater or equal to 52.Fix this to use RESTYPE_BITS instead;  {,l}lrint{,f} are now ableto pass our regression tests, and I think are right now.

Revision1.2 / (download) -annotate -[select for diffs],Sun Apr 10 11:25:14 2011 UTC (14 years, 7 months ago) bymartynas
Branch:MAIN
Changes since1.1: +4 -4 lines
Diff to previous1.1 (colored)

The assumption that |1.0 * 2^exp| = 0, exp < -1 cannot be made whenwe round towards -inf or +inf.

Revision1.1 / (download) -annotate -[select for diffs],Mon Sep 25 20:25:41 2006 UTC (19 years, 2 months ago) bykettenis
Branch:MAIN
CVS Tags:OPENBSD_4_9_BASE,OPENBSD_4_9,OPENBSD_4_8_BASE,OPENBSD_4_8,OPENBSD_4_7_BASE,OPENBSD_4_7,OPENBSD_4_6_BASE,OPENBSD_4_6,OPENBSD_4_5_BASE,OPENBSD_4_5,OPENBSD_4_4_BASE,OPENBSD_4_4,OPENBSD_4_3_BASE,OPENBSD_4_3,OPENBSD_4_2_BASE,OPENBSD_4_2,OPENBSD_4_1_BASE,OPENBSD_4_1

Move llrint.c, llrintf.c, lrint.c and lrintf.c to s_llrint.c, s_llrintf.c,s_lrint.c and s_lrintf.c, and add i387-specific assembler versions.ok deraadt@, otto@

This form allows you to request diff's between any tworevisions of a file. You may select a symbolic revisionname using the selection box or you may type in a numericname using the type-in text box.




[8]ページ先頭

©2009-2025 Movatter.jp