亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bits.c

?? ssd6 exercise2 該文件是2008 年icarnegie的最新版
?? C
字號:
/*  * bits.c - Source file with your solutions to the Lab. *          This is the file you will hand in to your instructor.
 *  this bits.c is over'd by the author yangxinhai at the time of 2008/10/15/9:38
 *	author:Yang_xinhai
 *	ID	  : 063458
 *	class : RJ010609
 *	date  : 2008/10/15
 *	time  : 9:38 */#include "btest.h"
#include <limits.h>/* * Instructions to Students: * * STEP 1: Fill in the following struct with your identifying info. */info_struct info ={   /* Replace with your full name */   "yangxh",   /* Replace with your login ID */   "063458",};#if 0/* * STEP 2: Read the following instructions carefully. */You will provide your solution to the Data Lab byediting 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 operators. You are not restricted to  one operator per line.  You are expressly forbidden to:  1. Use any control constructs such as if, do, while, for, switch, etc.  2. Define or use any macros.  3. Define any additional functions in this file.  4. Call any functions.  5. Use any other operations, such as &&, ||, -, ?, or []:  6. Use any form of casting.   You may assume that your machine:  1. Uses 2s complement, 32-bit representations of integers.  2. Performs right shifts arithmetically.  3. Has unpredictable behavior when shifting an integer by more     than the word size.EXAMPLES OF ACCEPTABLE CODING STYLE:  /*   * pow2plus1 - returns 2^x + 1, where 0 <= x <= 31
    *  this bits.c is over'd by the author yangxinhai at the time of 2008/10/15/9:38
 *	author:Yang_xinhai
 *	ID	  : 063458
 *	class : RJ010609
 *	date  : 2008/10/15
 *	time  : 9:38   */  int pow2plus1(int x) {     /* exploit ability of shifts to compute powers of 2 */     return (1 << x) + 1;  }  /*   * pow2plus4 - returns 2^x + 4, where 0 <= x <= 31   */  int pow2plus4(int x) {     /* exploit ability of shifts to compute powers of 2 */     int result = (1 << x);     result += 4;     return result;  }NOTES AND HINTS:  1. Each function has a maximum number of operators (! ~ & ^ | + << >>)     that you are allowed to use for your implementation of the function.      The max operator count will be checked by your instructor.      Note that '=' is not counted; you may use as many of these as you      want without penalty.  2. Use the btest test harness to check your functions for correctness.#endif/* * STEP 3: Modify the following functions according the coding rules. *//*  * bitAnd - x&y using only ~ and |  *   Example: bitAnd(6, 5) = 4 *   Legal ops: ~ | *   Max ops: 8 *   Rating: 1 */int bitAnd(int x, int y) {  return ~((~x) | (~y));}/*  * bitOr - x|y using only ~ and &  *   Example: bitOr(6, 5) = 7 *   Legal ops: ~ & *   Max ops: 8 *   Rating: 1 */int bitOr(int x, int y) {  return ~((~x) & (~y));}/* * isZero - returns 1 if x == 0, and 0 otherwise  *   Examples: isZero(5) = 0, isZero(0) = 1 *   Legal ops: ! ~ & ^ | + << >> *   Max ops: 2 *   Rating: 1 */int isZero(int x) {

	 return !x;}/*  * minusOne - return a value of -1  *   Legal ops: ! ~ & ^ | + << >> *   Max ops: 2 *   Rating: 1 */int minusOne(void) {	int a;  return (~a)|a;}/*  * TMax - return maximum two's complement integer  *   Legal ops: ! ~ & ^ | + << >> *   Max ops: 4 *   Rating: 1 */int tmax(void) {
	return ~(0x1<<31);
  //return ~0x80000000;}/*  * bitXor - x^y using only ~ and &  *   Example: bitXor(4, 5) = 1 *   Legal ops: ~ & *   Max ops: 14 *   Rating: 2 */int bitXor(int x, int y) {  return (~(x&y))&(~((~x)&(~y)));}/*  * getByte - Extract byte n from word x *   Bytes numbered from 0 (LSB) to 3 (MSB) *   Examples: getByte(0x12345678,1) = 0x56 *   Legal ops: ! ~ & ^ | + << >> *   Max ops: 6 *   Rating: 2 */int getByte(int x, int n) {	  return (((x>>(n<<3))&(0x000000ff)));}/*  * isEqual - return 1 if x == y, and 0 otherwise  *   Examples: isEqual(5,5) = 1, isEqual(4,5) = 0 *   Legal ops: ! ~ & ^ | + << >> *   Max ops: 5 *   Rating: 2 */int isEqual(int x, int y) {
	return ((!((~x)&y))&(!((~y)&x)));}
/*  * negate - return -x  *   Example: negate(1) = -1. *   Legal ops: ! ~ & ^ | + << >> *   Max ops: 5 *   Rating: 2 */int negate(int x) {  return ~(x + ~(0x0));}/*  * isPositive - return 1 if x > 0, return 0 otherwise  *   Example: isPositive(-1) = 0. *   Legal ops: ! ~ & ^ | + << >> *   Max ops: 8 *   Rating: 3 */int isPositive(int x) {  return !((x|(~((!x) + ~(0x0))))>>31);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩专区在线| 一级做a爱片久久| 丝袜亚洲另类欧美| 欧美色综合久久| 亚洲国产视频a| 欧美精品123区| 久久99精品国产麻豆不卡| 欧美不卡在线视频| 国产99久久久精品| 亚洲综合色成人| 这里只有精品视频在线观看| 日韩高清不卡一区二区| 精品久久五月天| 成人av网在线| 日本亚洲天堂网| 国产女人18毛片水真多成人如厕 | 欧美熟乱第一页| 蜜芽一区二区三区| 久久久久久久久久久久久女国产乱 | 色悠悠亚洲一区二区| 五月天精品一区二区三区| 亚洲精品一区二区三区四区高清| 成人一级黄色片| 无码av中文一区二区三区桃花岛| 久久青草国产手机看片福利盒子| 99国产精品视频免费观看| 秋霞午夜av一区二区三区| 国产精品乱码妇女bbbb| 69久久99精品久久久久婷婷 | 三级久久三级久久| 国产免费成人在线视频| 欧美综合在线视频| 国产精品77777竹菊影视小说| 亚洲成国产人片在线观看| 久久久蜜桃精品| 欧美日韩亚洲综合| 成人毛片老司机大片| 久久99久久精品| 亚洲一区二区在线观看视频| 国产视频911| 日韩一区二区三| 91极品视觉盛宴| 成人精品鲁一区一区二区| 蜜臀久久99精品久久久久久9 | 成人91在线观看| 紧缚奴在线一区二区三区| 亚洲中国最大av网站| 国产精品免费人成网站| 日韩精品一区二区三区中文不卡| 91色|porny| 丁香五精品蜜臀久久久久99网站 | 在线观看免费亚洲| 高清视频一区二区| 精品一区二区三区欧美| 奇米亚洲午夜久久精品| 午夜激情久久久| 亚洲国产婷婷综合在线精品| 成人免费在线观看入口| 国产精品国产三级国产有无不卡| 国产亚洲制服色| 国产视频亚洲色图| 国产欧美精品一区二区色综合| 26uuu另类欧美亚洲曰本| 日韩三级视频中文字幕| 欧美老肥妇做.爰bbww| 欧美日韩色综合| 欧美一区二区高清| 日韩精品一区二区三区老鸭窝| 欧美成人女星排行榜| 精品欧美一区二区三区精品久久| 欧美一区二区三区在线看| 91麻豆精品国产自产在线观看一区 | 国产三级欧美三级| 国产精品视频线看| 中文字幕一区二区三区在线观看| 亚洲欧洲日产国码二区| 国产精品女上位| 怡红院av一区二区三区| 亚洲3atv精品一区二区三区| 青青草国产成人99久久| 国产精品一区二区黑丝| bt欧美亚洲午夜电影天堂| 91女神在线视频| 欧美日韩国产中文| 久久亚洲精品小早川怜子| 中文子幕无线码一区tr| 亚洲综合丝袜美腿| 狠狠色丁香婷婷综合| 高清国产午夜精品久久久久久| 91麻豆视频网站| 日韩精品资源二区在线| 日韩一区欧美小说| 视频一区二区欧美| 国产精品一级在线| 在线亚洲欧美专区二区| 日韩欧美国产一二三区| 亚洲欧美激情小说另类| 丝袜亚洲另类欧美综合| 懂色中文一区二区在线播放| 欧美视频完全免费看| 久久精品人人做人人综合 | 2021中文字幕一区亚洲| 中文字幕av在线一区二区三区| 亚洲午夜电影网| 国产精品亚洲人在线观看| 欧美日韩一区三区| 国产精品欧美一区喷水| 青草国产精品久久久久久| 99亚偷拍自图区亚洲| 欧美一区二区三区视频| 亚洲色图都市小说| 久草在线在线精品观看| 在线一区二区视频| 国产精品污www在线观看| 日韩国产一区二| 99re热这里只有精品视频| 精品久久久久久最新网址| 亚洲一区二区三区三| 国产成人福利片| 日韩精品一区二| 日韩激情在线观看| 在线日韩av片| 1024亚洲合集| 成人中文字幕电影| 国产欧美日韩一区二区三区在线观看 | 久久精品人人爽人人爽| 精品一区二区三区免费视频| 在线成人av影院| 亚洲一区二区影院| 欧美视频日韩视频| 一区二区三区国产精华| 一本色道久久综合狠狠躁的推荐 | 亚洲成人资源网| 一本大道久久a久久精二百| 国产精品免费久久久久| 高清shemale亚洲人妖| 久久久国际精品| 福利电影一区二区| 欧美国产视频在线| jizz一区二区| 亚洲欧洲韩国日本视频| 99久久伊人久久99| 亚洲欧洲制服丝袜| 91欧美一区二区| 亚洲国产另类精品专区| 欧美电影影音先锋| 免费成人在线影院| 精品国产3级a| 丁香激情综合国产| 一区二区三区四区视频精品免费| 99久久精品国产毛片| 亚洲激情网站免费观看| 欧美在线观看一区| 亚洲va国产天堂va久久en| 欧美精品一级二级三级| 麻豆精品国产传媒mv男同| 久久婷婷国产综合精品青草| 国产精品综合在线视频| ●精品国产综合乱码久久久久| 91日韩在线专区| 日韩精品乱码免费| 亚洲国产精品ⅴa在线观看| 色老汉av一区二区三区| 日本在线不卡视频| 中文欧美字幕免费| 欧美系列亚洲系列| 国产综合色产在线精品| 亚洲嫩草精品久久| 欧美一区二区久久久| 高清不卡一二三区| 午夜视频在线观看一区二区三区| 精品国产亚洲一区二区三区在线观看| 国产高清精品在线| 亚洲国产另类av| 国产日产欧产精品推荐色 | 欧美日韩日日夜夜| 粉嫩13p一区二区三区| 亚洲大片免费看| 国产精品网站在线| 日韩一区二区三区视频| 91香蕉视频黄| 国内偷窥港台综合视频在线播放| 亚洲欧洲制服丝袜| 欧美精品一区二区蜜臀亚洲| 色婷婷一区二区| 国产精品18久久久久久久久| 午夜不卡在线视频| 一区二区三区影院| 欧美高清在线视频| 精品动漫一区二区三区在线观看| 色综合天天综合色综合av| 看片网站欧美日韩| 亚洲国产一二三| 亚洲同性gay激情无套| 久久一区二区三区国产精品| 欧美日韩在线三级| 一本一道久久a久久精品综合蜜臀| 国模套图日韩精品一区二区| 亚洲成a人片综合在线| 尤物在线观看一区|