[Numpy-discussion] UFUNC_CHECK_STATUS cpu hog

Thomas Grill grrrr.org@gmail....
Sat Mar 1 21:54:08 CST 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://projects.scipy.org/pipermail/numpy-discussion/attachments/20080302/0b3ab375/attachment-0001.bin 


More information about the Numpy-discussion mailing list