Skip to content

sysutils patch for HighestSetBitPos() and LowestSetBitPos(), xml doc update, examples

reference: #39268 (closed)

20220114-1-patch-setbitpos.diff 20220114-2-patch-doc.diff 20220120-3-examples.zip

20220114-1-patch-setbitpos.diff is a source code fix for HighestSetBitPos() and LowestSetBitPos() so that result is negative (-1) instead of 255 when there are no bits set at all.

20220114-2-patch-doc.diff is a sysutils.xml documentation fix for HighestSetBitPos() and LowestSetBitPos().

20220120-3-examples.zip are 2 examples that should be included in fpcsrc\packages\rtl-objpas package.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information