Lines Matching refs:lu
1594 unsigned long lu; in pylong_as_lu() local
1600 lu = PyLong_AsUnsignedLong(tmp); in pylong_as_lu()
1602 return lu; in pylong_as_lu()
1682 unsigned long lu; in unpack_single() local
1704 case 'H': UNPACK_SINGLE(lu, ptr, unsigned short); goto convert_lu; in unpack_single()
1705 case 'I': UNPACK_SINGLE(lu, ptr, unsigned int); goto convert_lu; in unpack_single()
1706 case 'L': UNPACK_SINGLE(lu, ptr, unsigned long); goto convert_lu; in unpack_single()
1736 return PyLong_FromUnsignedLong(lu); in unpack_single()
1772 unsigned long lu; in pack_single() local
1803 lu = pylong_as_lu(item); in pack_single()
1804 if (lu == (unsigned long)-1 && PyErr_Occurred()) in pack_single()
1808 if (lu > UCHAR_MAX) goto err_range; in pack_single()
1809 *((unsigned char *)ptr) = (unsigned char)lu; break; in pack_single()
1811 if (lu > USHRT_MAX) goto err_range; in pack_single()
1812 PACK_SINGLE(ptr, lu, unsigned short); break; in pack_single()
1814 if (lu > UINT_MAX) goto err_range; in pack_single()
1815 PACK_SINGLE(ptr, lu, unsigned int); break; in pack_single()
1817 PACK_SINGLE(ptr, lu, unsigned long); break; in pack_single()