From d07e23eb006dbbb83f9c33942a313b7bad3a90f7 Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Wed, 5 May 2021 23:09:26 +0900 Subject: [PATCH] Add comments to bitscan-forward --- lib/bitscan.fs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bitscan.fs b/lib/bitscan.fs index 5261d5f..5c2f6bc 100644 --- a/lib/bitscan.fs +++ b/lib/bitscan.fs @@ -32,7 +32,9 @@ create bsf-modulo-131-table \ Find the index of the least significant 1 bit \ If u == 0, returns -1 : bitscan-forward ( u -- u ) - dup negate and 131 mod cells bsf-modulo-131-table + @ + dup negate and \ LS1B isolation + 131 mod \ perfect hashing + cells bsf-modulo-131-table + @ ; export create msb-index-table