Any ideas to support "modern" CPU instructions (such as "clz")?

Mohammad-Reza Nabipoor mnabipoor@gnu.org
Fri Jan 23 21:10:27 GMT 2026


Hi James.

On Fri, Jan 23, 2026 at 06:34:37PM +0100, jpl wrote:
> Hello All,
> 
> I realize it's probably too early to contemplate such questions.
> 
> But, I was curious if the GNU Algol 68's vision would be to eventually
> incorporate support for instructions such as "clz" (count leading
> zeros), etc?  I'm not sure if this is even possible.
> 

Having a `op CLZ = (bits b): ...;' and all the short and long variants
in standard prelude is reasonable to me (as an extension).
And gcc supports `__builtin_clz' builtin.
So supporting it is just a matter of motivation of somebody to send a patch :)


More information about the Algol68 mailing list