[Pyrex] Pyrex idioms and optimizations?
Alexander Belchenko
bialix at ukr.net
Thu Jul 26 20:47:55 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alexander Belchenko пишет:
> William Stein ?8H5B:
>> On 7/26/07, Alexander Belchenko <bialix at ukr.net> wrote:
>>> Here the lines that cause problems:
>>>
>>> line 30:
>>>
>>> static inline int __Pyx_PyObject_IsTrue(PyObject* x) {
>>> if (x == Py_True) return 1;
>>> else if (x == Py_False) return 0;
>>> else return PyObject_IsTrue(x);
>>> }
>>>
>>> line 155 use macro
>>> #define unlikely(x) __builtin_expect(!!(x), 0)
>>> and __builtin_expect is somewhat gcc-specific, I guess.
>> Thanks for posting this. I've put a copy in the todo list
>> at http://cython.org. I wonder, could you post the
>> input .pyx file that you used or email it to me?
>
> Actually this pyx file from Bazaar sources.
> If you have bzr installed you can get it with command:
>
> bzr checkout --lightweight ttp://bazaar-vcs.org/bzr/bzr.dev
Sorry for typo, URL should be: http://bazaar-vcs.org/bzr/bzr.dev
You also can browse this file via loggerhead:
http://codebrowse.launchpad.net/~bzr/bzr/trunk/annotate/pqm%40pqm.ubuntu.com-20070725140043-22lenkarm0oc3tvx?file_id=knit_c.pyx-20070509143944-u42gy8w387a10m0j-1
At this page you find link to download this file alone.
- --
[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGqOxbzYr338mxwCURAhGHAJ9MFjTFo/4XKnk3IyvalfoKDUAKDACeJAOB
I+PhKXtPcmkUFV5dttbReqc=
=qL7a
-----END PGP SIGNATURE-----
More information about the Pyrex
mailing list