project-rig / rig

A collection of tools for developing SpiNNaker applications.
GNU General Public License v2.0
4 stars 0 forks source link

Add get_location_and_length to BitField #221

Closed mossblaser closed 8 years ago

mossblaser commented 8 years ago

This new method allows the direct querying of the size and location allocated to fields in a bit field, without having to deconstruct a mask.

This should address the need expressed by @alan-stokes in SpiNNakerManchester/PACMAN#35 while being less wasteful than just computing these values from the mask.

mundya commented 8 years ago

LGTM, merge when Travis is happy...

mundya commented 8 years ago

Hmm... distinct lack of coverage and PR testing there...

mossblaser commented 8 years ago

Yes :/ tested them offline myself in the end...