Fix fallback lg_floor() implementations.