History log of /netbsd-src/tests/include/sys/t_bitops.c (Results 1 – 22 of 22)
Revision Date Author Comments
# 235f3e57 01-Nov-2024 riastradh <riastradh@NetBSD.org>

strings.h: Spruce up for POSIX 2024.

1. Add ffsl, ffsll.
2. Hide bcmp, bcopy, bzero, index, rindex for POSIX>=2024.
3. Expose ffs only for NetBSD or POSIX>=2008 with XSI option.
4. Hide popcount* Ne

strings.h: Spruce up for POSIX 2024.

1. Add ffsl, ffsll.
2. Hide bcmp, bcopy, bzero, index, rindex for POSIX>=2024.
3. Expose ffs only for NetBSD or POSIX>=2008 with XSI option.
4. Hide popcount* NetBSD extensions for any POSIX.
5. Sprinkle __constfunc on ffs*.

Add tests for ffs/ffsl/ffsll in tests/include/sys/t_bitops next to
ffs32/ffs64 for convenience.

XXX Still missing strcasecmp_l, strncasecmp_l, and locale_t.

PR lib/58802: missing ffsl(), ffsll() functions from POSIX 2024

show more ...


# 07b9e924 13-Jul-2023 riastradh <riastradh@NetBSD.org>

t_bitops: Show the bad results on failure.


# 95a05eda 25-Jul-2018 kamil <kamil@NetBSD.org>

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 p

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.

show more ...


# ec31227c 21-Mar-2015 isaki <isaki@NetBSD.org>

one more white space -> tab.


# 47f8b9c0 21-Mar-2015 isaki <isaki@NetBSD.org>

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() impl

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.

show more ...


# 787a0efa 14-Mar-2015 isaki <isaki@NetBSD.org>

white space -> tab.


# b1dcb176 07-Dec-2012 christos <christos@NetBSD.org>

use __BITMAP_TYPE


# f8b5dc2c 04-Dec-2012 jruoho <jruoho@NetBSD.org>

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


# 7726fd76 31-Oct-2011 pgoyette <pgoyette@NetBSD.org>

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


OK jruoho@


# 07f6e1d3 02-Oct-2011 christos <christos@NetBSD.org>

remove stray underscore.


# 0dd4f3a5 01-Oct-2011 christos <christos@NetBSD.org>

disable test on the vax until we fix it.


# cbbf4a4b 30-Sep-2011 jruoho <jruoho@NetBSD.org>

Add expected failures for Qemu.


# 53716741 29-Aug-2011 jruoho <jruoho@NetBSD.org>

Remove some cruft that is no longer needed.


# 86cc76e7 29-Aug-2011 jruoho <jruoho@NetBSD.org>

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

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.

show more ...


# f7ca1d12 07-Jul-2011 jruoho <jruoho@NetBSD.org>

Improve the QEMU/amd64 detection.


# a873c5cd 30-Mar-2011 jruoho <jruoho@NetBSD.org>

Add missing __RCSID(3).


# c90472ef 25-Mar-2011 jruoho <jruoho@NetBSD.org>

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


# 16043248 25-Mar-2011 jruoho <jruoho@NetBSD.org>

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

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


# 5f8b3646 25-Mar-2011 jruoho <jruoho@NetBSD.org>

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


# 5ceeb040 24-Mar-2011 jruoho <jruoho@NetBSD.org>

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


# 56d0179b 24-Mar-2011 jruoho <jruoho@NetBSD.org>

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


# acf13bc7 19-Mar-2011 jruoho <jruoho@NetBSD.org>

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