cpu.x86: enable bit-count intrinsic if POPCNT available

Joe Groff 2010-05-15 14:00:12 -07:00
parent ad74f99ec1
commit c06ebe502e
1 changed files with 3 additions and 2 deletions

View File

@ -1534,9 +1534,10 @@ enable-float-min/max
enable-fsqrt
: check-sse ( -- )
[ { (sse-version) } compile ] with-optimizer
[ { (sse-version) (popcnt?) } compile ] with-optimizer
sse-version 20 < [
"Factor requires SSE2, which your CPU does not support." print
flush
1 exit
] when ;
] when
popcnt? [ enable-bit-count ] when ;