Find first and last set bit of a long integer: Difference between revisions
Find first and last set bit of a long integer (view source)
Revision as of 21:47, 30 March 2022
, 2 years ago→By divide and conquer
Line 609:
Even though Fortran has intrinsic functions, and modern machines have special instructions for the task, it still seems worthwhile to write out functions.
One thing that is evident, if you study the various ways to implement these functions, is that Fortran is ill suited, in a way most high-level languages have been ill
<lang fortran>! As was already pointed out, Fortran
!
! instruction. But it seems profitable to have written implementations
! according to the full task description, and also by other methods.
|