Description: ou will provide your solution to the Data Lab by
editing the collection of functions in this source file.
CODING RULES:
Replace the "return" statement in each function with one
or more lines of C code that implements the function. Your code
must conform to the following style:
int Funct(arg1, arg2, ...) {
/* brief description of how your implementation works*/
int var1 = Expr1
...
int varM = ExprM
varJ = ExprJ
...
varN = ExprN
return ExprR
}
Each "Expr" is an expression using ONLY the following:
1. Integer constants 0 through 255 (0xFF), inclusive. You are
not allowed to use big constants such as 0xffffffff.
2. Function arguments and local variables (no global variables).
3. Unary integer operations ! ~
4. Binary integer operations & ^ |+ << >>
Some of the problems restrict the set of allowed operators even further.
Each "Expr" may consist of multiple
To Search:
File list (Check if you may need any files):
71477224lab1.tar