[fpc-pascal] Bit manipulation helpers

Ryan Joseph genericptr at gmail.com
Mon Feb 21 12:54:42 CET 2022


I tried to use the bit helpers like https://www.freepascal.org/docs-html/rtl/sysutils/twordhelper.testbit.html but the bit to test is  0..15. I expected this to work like https://wiki.freepascal.org/Bit_manipulation but that doesn't seem to be the case. 

Does there exist bit helpers like GetBit (from the last link) in the RTL?

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list