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

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

?? bitmap.cc

?? nachos test nachos 有關實驗
?? CC
字號:
// bitmap.c //	Routines to manage a bitmap -- an array of bits each of which//	can be either on or off.  Represented as an array of integers.//// Copyright (c) 1992-1993 The Regents of the University of California.// All rights reserved.  See copyright.h for copyright notice and limitation // of liability and disclaimer of warranty provisions.#include "copyright.h"#include "bitmap.h"//----------------------------------------------------------------------// BitMap::BitMap// 	Initialize a bitmap with "nitems" bits, so that every bit is clear.//	it can be added somewhere on a list.////	"nitems" is the number of bits in the bitmap.//----------------------------------------------------------------------BitMap::BitMap(int nitems) {     numBits = nitems;    numWords = divRoundUp(numBits, BitsInWord);    map = new unsigned int[numWords];    for (int i = 0; i < numBits; i++)         Clear(i);}//----------------------------------------------------------------------// BitMap::~BitMap// 	De-allocate a bitmap.//----------------------------------------------------------------------BitMap::~BitMap(){     delete map;}//----------------------------------------------------------------------// BitMap::Set// 	Set the "nth" bit in a bitmap.////	"which" is the number of the bit to be set.//----------------------------------------------------------------------voidBitMap::Mark(int which) {     ASSERT(which >= 0 && which < numBits);    map[which / BitsInWord] |= 1 << (which % BitsInWord);}    //----------------------------------------------------------------------// BitMap::Clear// 	Clear the "nth" bit in a bitmap.////	"which" is the number of the bit to be cleared.//----------------------------------------------------------------------void BitMap::Clear(int which) {    ASSERT(which >= 0 && which < numBits);    map[which / BitsInWord] &= ~(1 << (which % BitsInWord));}//----------------------------------------------------------------------// BitMap::Test// 	Return TRUE if the "nth" bit is set.////	"which" is the number of the bit to be tested.//----------------------------------------------------------------------bool BitMap::Test(int which){    ASSERT(which >= 0 && which < numBits);        if (map[which / BitsInWord] & (1 << (which % BitsInWord)))	return TRUE;    else	return FALSE;}//----------------------------------------------------------------------// BitMap::Find// 	Return the number of the first bit which is clear.//	As a side effect, set the bit (mark it as in use).//	(In other words, find and allocate a bit.)////	If no bits are clear, return -1.//----------------------------------------------------------------------int BitMap::Find() {    for (int i = 0; i < numBits; i++)	if (!Test(i)) {	    Mark(i);	    return i;	}    return -1;}//----------------------------------------------------------------------// BitMap::NumClear// 	Return the number of clear bits in the bitmap.//	(In other words, how many bits are unallocated?)//----------------------------------------------------------------------int BitMap::NumClear() {    int count = 0;    for (int i = 0; i < numBits; i++)	if (!Test(i)) count++;    return count;}//----------------------------------------------------------------------// BitMap::Print// 	Print the contents of the bitmap, for debugging.////	Could be done in a number of ways, but we just print the #'s of//	all the bits that are set in the bitmap.//----------------------------------------------------------------------voidBitMap::Print() {    printf("Bitmap set:\n");     for (int i = 0; i < numBits; i++)	if (Test(i))	    printf("%d, ", i);    printf("\n"); }// These aren't needed until the FILESYS assignment//----------------------------------------------------------------------// BitMap::FetchFromFile// 	Initialize the contents of a bitmap from a Nachos file.////	"file" is the place to read the bitmap from//----------------------------------------------------------------------voidBitMap::FetchFrom(OpenFile *file) {    file->ReadAt((char *)map, numWords * sizeof(unsigned), 0);}//----------------------------------------------------------------------// BitMap::WriteBack// 	Store the contents of a bitmap to a Nachos file.////	"file" is the place to write the bitmap to//----------------------------------------------------------------------voidBitMap::WriteBack(OpenFile *file){   file->WriteAt((char *)map, numWords * sizeof(unsigned), 0);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲人成网站精品片在线观看 | 国产一区二区三区四区五区美女 | 99久久99久久精品国产片果冻| 欧美色窝79yyyycom| 国产亚洲欧美在线| 日一区二区三区| 99re这里只有精品首页| 久久久久国产精品麻豆ai换脸| 亚洲高清免费观看高清完整版在线观看| 久草热8精品视频在线观看| 色女孩综合影院| 国产精品视频在线看| 免费看黄色91| 欧美日韩在线亚洲一区蜜芽| 综合激情成人伊人| 国产一区二区三区综合| 精品奇米国产一区二区三区| 天堂va蜜桃一区二区三区| 色综合天天综合网国产成人综合天| 久久久久久99久久久精品网站| 免费在线观看日韩欧美| 欧美在线看片a免费观看| 国产精品国产a| 国产91综合网| 国产欧美久久久精品影院| 激情综合网最新| 欧美xfplay| 激情六月婷婷久久| 2022国产精品视频| 久久成人18免费观看| 91精品国产色综合久久久蜜香臀| 亚洲不卡av一区二区三区| 在线日韩一区二区| 一本色道久久综合狠狠躁的推荐| 国产成人精品三级麻豆| 99国产精品久| 中文字幕乱码一区二区免费| 国产成人免费视频网站| 日本一区二区三区四区| 国产乱码精品一品二品| 国产精品污污网站在线观看| 国产91精品露脸国语对白| 国产精品久久久久一区| 色噜噜狠狠色综合中国| 亚洲国产日韩一区二区| 91精品国产综合久久久蜜臀粉嫩 | 久久国产精品无码网站| 亚洲精品一区二区精华| 国产精品一卡二卡| 国产精品黄色在线观看| 91丨九色丨蝌蚪富婆spa| 裸体在线国模精品偷拍| 在线观看中文字幕不卡| 在线国产亚洲欧美| 日韩中文欧美在线| 欧美一区二区黄| 黑人巨大精品欧美一区| 中文一区在线播放| 91官网在线观看| 亚洲二区在线视频| 精品成人一区二区三区| 成人免费视频免费观看| 亚洲精品乱码久久久久久| 欧美疯狂性受xxxxx喷水图片| 久久不见久久见免费视频7| 日本一二三不卡| 欧美日韩国产一区| 国产乱码精品1区2区3区| 亚洲精品老司机| 日韩女优电影在线观看| 本田岬高潮一区二区三区| 亚洲福利视频三区| 欧美国产国产综合| 91精品国产手机| 国产精品免费久久| 婷婷中文字幕一区三区| 免费成人在线播放| 国产欧美久久久精品影院| 欧美亚洲国产一区二区三区va| 另类小说图片综合网| 亚洲欧美成人一区二区三区| 日韩一区二区免费在线观看| 91在线观看高清| 久久国产乱子精品免费女| 亚洲免费看黄网站| 久久精品欧美日韩| 91精品国产综合久久婷婷香蕉| av成人动漫在线观看| 国产一区二区三区日韩 | 久久精品一区四区| 69堂国产成人免费视频| 91精品福利在线| 成人综合激情网| 国产在线不卡一卡二卡三卡四卡| 亚洲一卡二卡三卡四卡无卡久久 | 91原创在线视频| 26uuu亚洲| 欧美日韩精品一区二区| 91亚洲国产成人精品一区二区三| 久久www免费人成看片高清| 亚洲国产精品久久一线不卡| 亚洲人xxxx| 中文字幕一区二区三区四区| 国产日韩欧美精品电影三级在线| 欧美zozozo| 精品少妇一区二区三区免费观看| 欧美精品久久99久久在免费线 | 亚洲乱码中文字幕| 国产精品白丝在线| 中文字幕在线不卡一区| 国产日韩精品一区二区浪潮av | 亚洲欧美日韩国产一区二区三区| 国产偷v国产偷v亚洲高清| 日韩欧美另类在线| 欧美刺激脚交jootjob| 欧美va亚洲va国产综合| 精品国产人成亚洲区| 精品国产欧美一区二区| 久久精品男人天堂av| 国产欧美一区二区在线| 国产精品麻豆一区二区 | 国产情人综合久久777777| 国产亚洲欧美日韩俺去了| 久久网站最新地址| 国产女人18毛片水真多成人如厕 | 国产午夜精品一区二区 | 久久嫩草精品久久久久| 久久久久久久国产精品影院| 精品久久久久香蕉网| 国产亚洲一区二区在线观看| 亚洲欧洲性图库| 夜夜嗨av一区二区三区网页 | 日韩限制级电影在线观看| 日韩欧美一级片| 亚洲国产精品高清| 亚洲六月丁香色婷婷综合久久| 偷拍与自拍一区| 精品一区二区三区久久久| 成人国产电影网| 欧美亚洲动漫精品| 欧美大片顶级少妇| 国产精品乱码人人做人人爱 | 亚洲尤物在线视频观看| 日韩主播视频在线| 国产精品99久久久久久久vr | 夜夜揉揉日日人人青青一国产精品| 亚洲高清免费观看| 国产精品亚洲人在线观看| 91麻豆免费看片| 日韩精品一区二区三区中文精品 | 久久综合九色综合97婷婷| 国产精品第一页第二页第三页| 亚洲bt欧美bt精品777| 国模无码大尺度一区二区三区| 95精品视频在线| 日韩一区二区三区电影在线观看 | 国产精品国产三级国产普通话三级| 亚洲国产另类av| 国内精品伊人久久久久av影院| 成人免费黄色在线| 日韩一区二区三区高清免费看看| 亚洲特级片在线| 久久国产精品色| 欧美日韩亚洲综合一区| 国产日本一区二区| 日韩中文字幕1| 在线这里只有精品| 久久久久久久久久久久久久久99| 亚洲一区二区三区中文字幕在线| 国产九色sp调教91| 88在线观看91蜜桃国自产| 亚洲女同一区二区| 国产精品一区免费在线观看| 51精品国自产在线| 亚洲乱码中文字幕| 国产91丝袜在线播放| 欧美精品一区二区三区蜜桃视频| 亚洲一二三专区| 91捆绑美女网站| 欧美国产精品久久| 国产一区中文字幕| 欧美二区在线观看| 一区二区三区产品免费精品久久75| 国产精品中文欧美| 精品日韩一区二区三区| 日本不卡视频在线观看| 欧美日免费三级在线| 成人欧美一区二区三区视频网页| 国产精品99久| 久久久久久综合| 国产一区二区三区久久久| 日韩欧美综合在线| 蜜臀av性久久久久av蜜臀妖精| 欧美日韩夫妻久久| 亚欧色一区w666天堂| 欧美性极品少妇| 亚洲成人免费影院| 欧美日韩成人高清| 日韩精品欧美精品| 欧美一区二区三区色|