def _weave_dohist(data, s, binsize, hist, rev, dorev=False, verbose=0):
    if dorev:
        dorev=1
    else:
        dorev=0
    code =
    scipy.weave.inline(code, ['data','s','binsize','hist','rev','dorev'],
                       type_converters = scipy.weave.converters.blitz, verbose=verbose)
    return