Lines Matching refs:slnum
264 int curlx_sltosi(long slnum) in curlx_sltosi() argument
271 DEBUGASSERT(slnum >= 0); in curlx_sltosi()
273 DEBUGASSERT((unsigned long) slnum <= (unsigned long) CURL_MASK_SINT); in curlx_sltosi()
275 return (int)(slnum & (long) CURL_MASK_SINT); in curlx_sltosi()
286 unsigned int curlx_sltoui(long slnum) in curlx_sltoui() argument
293 DEBUGASSERT(slnum >= 0); in curlx_sltoui()
295 DEBUGASSERT((unsigned long) slnum <= (unsigned long) CURL_MASK_UINT); in curlx_sltoui()
297 return (unsigned int)(slnum & (long) CURL_MASK_UINT); in curlx_sltoui()
308 unsigned short curlx_sltous(long slnum) in curlx_sltous() argument
315 DEBUGASSERT(slnum >= 0); in curlx_sltous()
316 DEBUGASSERT((unsigned long) slnum <= (unsigned long) CURL_MASK_USHORT); in curlx_sltous()
317 return (unsigned short)(slnum & (long) CURL_MASK_USHORT); in curlx_sltous()