[Python-Dev] Python-acceleration instructions on ARM (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Wed Feb 11 13:34:16 CET 2009
- Previous message: [Python-Dev] Python-acceleration instructions on ARM
- Next message: [Python-Dev] Python-acceleration instructions on ARM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin v. Löwis <martin v.loewis.de> writes:
- efficient array indexing: they give shift-and-index back to Thumb mode, for a shift by 2, allowing to index arrays with 4-byte elements in a single instruction (rather than requiring a separate multipy-by-four). Again useful for JIT of array access instructions, not applicable to Python - although it would be nice if the C compiler knew how to emit that.
This could be used in PyTuple_GetItem and PyList_GetItem, no? (assuming Thumb has 4-byte pointers)
- Previous message: [Python-Dev] Python-acceleration instructions on ARM
- Next message: [Python-Dev] Python-acceleration instructions on ARM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]