The NetBSD Project

CVS log for src/tests/include/sys/t_bitops.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / include / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 13 20:39:24 2023 UTC (7 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.20: +212 -169 lines
Diff to previous 1.20 (colored)

t_bitops: Show the bad results on failure.

Revision 1.19.16.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:01 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with HEAD

Revision 1.19.14.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:12 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with HEAD

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jul 25 22:00:32 2018 UTC (5 years, 7 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Avoid undefined behavior in an ATF test: t_bitops

Do not change the signedness bit with a left shift operation.
Switch to unsigned integer to prevent this.

t_bitops.c:189:9, left shift of 1 by 31 places cannot be represented in type 'int'

Detected with micro-UBSan in the user mode.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 21 05:50:19 2015 UTC (8 years, 11 months ago) by isaki
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

one more white space -> tab.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Mar 21 05:32:07 2015 UTC (8 years, 11 months ago) by isaki
Branch: MAIN
Changes since 1.17: +163 -37 lines
Diff to previous 1.17 (colored)

Rewrite ilog2's test.  PR lib/49745.
- Reorganize ilog2_basic to ilog2_32bit, ilog2_64bit and ilog2_const.
  ilog2_const is compile-time test for __builtin_constant_p() part of
  current ilog2() implementation.
- Remove fully meaningless ilog2_log2.  So this part of PR misc/44767
  is no longer present.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 14 07:23:46 2015 UTC (8 years, 11 months ago) by isaki
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

white space -> tab.

Revision 1.14.8.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:21 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.14: +40 -4 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

resync with head

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:57 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.14: +40 -4 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

sync with (a bit old) head

Revision 1.16 / (download) - annotate - [select for diffs], Fri Dec 7 02:28:19 2012 UTC (11 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, agc-symver-base, agc-symver
Changes since 1.15: +10 -10 lines
Diff to previous 1.15 (colored)

use __BITMAP_TYPE

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 4 06:57:44 2012 UTC (11 years, 3 months ago) by jruoho
Branch: MAIN
Changes since 1.14: +40 -4 lines
Diff to previous 1.14 (colored)

Move the bitmap(3) test to the "right" place. Note it in bitops(3). Xrefs.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 31 18:37:01 2011 UTC (12 years, 4 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

No need to keep on trying when this fails in the expected manner.  We
really don't need to have 32k failures.


OK jruoho@

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 2 18:34:17 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

remove stray underscore.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 1 18:38:39 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.11: +6 -2 lines
Diff to previous 1.11 (colored)

disable test on the vax until we fix it.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 30 14:50:20 2011 UTC (12 years, 5 months ago) by jruoho
Branch: MAIN
Changes since 1.10: +9 -3 lines
Diff to previous 1.10 (colored)

Add expected failures for Qemu.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 29 17:39:54 2011 UTC (12 years, 6 months ago) by jruoho
Branch: MAIN
Changes since 1.9: +2 -6 lines
Diff to previous 1.9 (colored)

Remove some cruft that is no longer needed.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 29 12:50:50 2011 UTC (12 years, 6 months ago) by jruoho
Branch: MAIN
Changes since 1.8: +2 -6 lines
Diff to previous 1.8 (colored)

Remove Xfails that are related to the infamous qemu/amd64 floating point
bugs. It appears to be quite difficult to identify the exact Qemu version
and setup. These do not fail on the TNF's qemu/amd64 setup, which can be
taken as a reference point for expected failures.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jul 7 11:04:30 2011 UTC (12 years, 7 months ago) by jruoho
Branch: MAIN
Changes since 1.7: +17 -11 lines
Diff to previous 1.7 (colored)

Improve the QEMU/amd64 detection.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Mar 30 08:34:20 2011 UTC (12 years, 11 months ago) by jruoho
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.6: +3 -1 lines
Diff to previous 1.6 (colored)

Add missing __RCSID(3).

Revision 1.6 / (download) - annotate - [select for diffs], Fri Mar 25 10:42:38 2011 UTC (12 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Do not skip the QEMU bugs but instead mark these as expected failures.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Mar 25 10:00:31 2011 UTC (12 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.4: +8 -4 lines
Diff to previous 1.4 (colored)

Bluntly skip the tests that fail under QEMU. XXX: system(3) is used for this?

wnCVS: ----------------------------------------------------------------------

Revision 1.4 / (download) - annotate - [select for diffs], Fri Mar 25 04:26:42 2011 UTC (12 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

Even these naive test cases caught one (QEMU?) bug; comment PR # 44767.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Mar 24 07:37:04 2011 UTC (12 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.2: +38 -1 lines
Diff to previous 1.2 (colored)

Add also a basic, naive, test for fast_divide32(3).

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 24 07:06:34 2011 UTC (12 years, 11 months ago) by jruoho
Branch: MAIN
Changes since 1.1: +66 -1 lines
Diff to previous 1.1 (colored)

Add some naive test cases for the ffs32(3) family of functions.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Mar 19 06:39:17 2011 UTC (12 years, 11 months ago) by jruoho
Branch: MAIN

Add a simple test file for <sys/bitops.h>. For now, only ilog2(3) is tested.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>