[Numpy-discussion] UFUNC_CHECK_STATUS cpu hog

Thomas Grill grrrr.org at gmail.com
Sat Mar 1 22:54:08 EST 2008


Am 02.03.2008 um 04:24 schrieb Travis E. Oliphant:

>>  if(__builtin_expect(fpstatus,0)) \
>
> Why the use of __builtin_expect here instead of fpstatus == 0?

Oops, nevertheless it should rather be something like
if(__builtin_expect(fpstatus == 0,1))
or
if(__builtin_expect(fpstatus,0) == 0)

sorry for the noise,
Thomas

--
Thomas Grill
http://grrrr.org


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2407 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080302/0b3ab375/attachment.bin>


More information about the NumPy-Discussion mailing list