section of routines in unsigned.i

functions in unsigned.i -

 
 
 
s_char


             s_char(x)  
 
    return short(x) interpreting char x as a signed integer.  
SEE ALSO: u_cast  
 
 
 
u_cast


             u_cast(x, structof(y))  
         or u_cast(x, y)  
 
    return x as an unsigned integer of type y.  
SEE ALSO: u_gt,   u_lt,   u_ge,   u_le,   u_shr,   u_div,   u_mod,  
s_char  
 
 
 
u_div


             u_div(n,d)  
         or u_div(n,d, r)  
 
    return n/d treating n and d as unsigned integers.  
    The optional third argument R is an output, set to n%d  
SEE ALSO: u_gt,   u_lt,   u_ge,   u_le,   u_shr,   u_mod,   u_cast  
 
 
 
u_eq


             u_eq(x,y)  
 
    return x==y treating x and y as unsigned integers.  
SEE ALSO: u_gt,   u_lt,   u_ge,   u_ne,   u_shr,   u_div,   u_mod,  
u_cast  
 
 
 
u_ge


             u_gt(x,y)  
 
    return x>=y treating x and y as unsigned integers.  
SEE ALSO: u_gt,   u_lt,   u_le,   u_eq,   u_ne,   u_shr,   u_div,  
u_mod,   u_cast  
 
 
 
u_gt


             u_gt(x,y)  
 
    return x>y treating x and y as unsigned integers.  
SEE ALSO: u_lt,   u_ge,   u_le,   u_eq,   u_ne,   u_shr,   u_div,  
u_mod,   u_cast  
 
 
 
u_le


             u_gt(x,y)  
 
    return x<=y treating x and y as unsigned integers.  
SEE ALSO: u_gt,   u_lt,   u_ge,   u_eq,   u_ne,   u_shr,   u_div,  
u_mod,   u_cast  
 
 
 
u_lt


             u_gt(x,y)  
 
    return x

SEE ALSO: u_gt,   u_ge,   u_le,   u_eq,   u_ne,   u_shr,   u_div,  
u_mod,   u_cast  
 
 
 
u_mod


             u_mod(n,d)  
         or u_mod(n,d, q)  
 
    return n%d treating n and d as unsigned integers.  
    The optional third argument Q is an output, set to n/d  
SEE ALSO: u_gt,   u_lt,   u_ge,   u_le,   u_shr,   u_div,   u_cast  
 
 
 
u_ne


             u_ne(x,y)  
 
    return x!=y treating x and y as unsigned integers.  
SEE ALSO: u_gt,   u_lt,   u_ge,   u_eq,   u_shr,   u_div,   u_mod,  
u_cast  
 
 
 
u_shr


             u_shr(x,n)  
 
    return x>>n treating x as an unsigned integer.  
SEE ALSO: u_gt,   u_lt,   u_ge,   u_le,   u_div,   u_mod,   u_cast