On Wed, Feb 09, 2022 at 11:43:21AM +0100, Ludovic Courtès wrote: > Efraim Flashner skribis: > > > + (letrec-syntax ((if-flags (syntax-rules (=>) > > + ((_) > > + #f) > > + ((_ (flags ... => name) rest ...) > > + (if (every (lambda (flag) > > + (set-contains? (cpu-flags cpu) > > + flag)) > > + '(flags ...)) > > + name > > + (if-flags rest ...)))))) > > + > > + (when (= 22 (cpu-family cpu)) > > + (if-flags ("movbe" => "btver2"))) > > + (when (= 6 (cpu-family cpu)) > > + (if-flags ("3dnowp" => "athalon"))) > > This has no effect (because ‘if-flags’ returns a value that is ignored > since it’s not returned.) > > What we could do is extend ‘if-flags’ so that it can optionally check > for a family number: > > (if-flags ((family 22) "movbe" => "btver2") > …) Another option would be to just move it to the bottom of the if-flags so it should take effect then. -- Efraim Flashner רנשלפ םירפא GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted