64-bit bitwise manipulation functions, by Gautam Tirumala.
This commit is contained in:
@@ -31,6 +31,11 @@ int cmp64ul(u64_t \fIi\fP, unsigned long \fIj\fP)
|
||||
unsigned long ex64lo(u64_t \fIi\fP)
|
||||
unsigned long ex64hi(u64_t \fIi\fP)
|
||||
u64_t make64(unsigned long \fIlo\fP, unsigned long \fIhi\fP)
|
||||
u64_t rrotate64(u64_t \fIi\fP, unsigned short \fIb\fP)
|
||||
u64_t rshift64(u64_t \fIi\fP, unsigned short \fIb\fP)
|
||||
u64_t xor64(u64_t \fIi\fP, u64_t \fIj\fP)
|
||||
u64_t and64(u64_t \fIi\fP, u64_t \fIj\fP)
|
||||
u64_t not64(u64_t \fIi\fP)
|
||||
.fi
|
||||
.ft P
|
||||
.SH DESCRIPTION
|
||||
@@ -186,9 +191,33 @@ if
|
||||
.I i
|
||||
>
|
||||
.IR j .
|
||||
|
||||
.TP
|
||||
.B "u64_t rrotate64(u64_t \fIi\fP, unsigned short \fIb\fP)"
|
||||
Rotate first 64-bit argument to the right by \fIb\fP bits and
|
||||
return the result.
|
||||
|
||||
.TP
|
||||
.B "u64_t rshift64(u64_t \fIi\fP, unsigned short \fIb\fP)"
|
||||
Shift first 64-bit argument to the right by \fIb\fP bits and
|
||||
return the result.
|
||||
|
||||
.TP
|
||||
.B "u64_t xor64(u64_t \fIi\fP, u64_t \fIj\fP)"
|
||||
Return the 64-bit bitwise xor of the 64-bit \fIi\fP and \fIj\fP arguments.
|
||||
|
||||
.TP
|
||||
.B "u64_t and64(u64_t \fIi\fP, u64_t \fIj\fP)"
|
||||
Return the 64-bit bitwise and of the 64-bit \fIi\fP and \fIj\fP arguments.
|
||||
|
||||
.TP
|
||||
.B "u64_t not64(u64_t \fIi\fP)"
|
||||
Return the 64-bit bitwise not of the 64-bit \fIi\fP argument.
|
||||
|
||||
.TP
|
||||
.B "int cmp64u(u64_t \fIi\fP, unsigned \fIj\fP)"
|
||||
Likewise compare a 64 bit number with an unsigned.
|
||||
|
||||
.TP
|
||||
.B "int cmp64ul(u64_t \fIi\fP, unsigned long \fIj\fP)"
|
||||
Likewise compare a 64 bit number with an unsigned long.
|
||||
|
||||
Reference in New Issue
Block a user