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

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

?? bitops.h

?? 嵌入式試驗箱S3C2410的bootloader源代碼
?? H
字號:
#ifndef _I386_BITOPS_H#define _I386_BITOPS_H/* * Copyright 1992, Linus Torvalds. *//* * These have to be done with inline assembly: that way the bit-setting * is guaranteed to be atomic. All bit operations return 0 if the bit * was cleared before the operation and != 0 if it was not. * * bit 0 is the LSB of addr; bit 32 is the LSB of (addr+1). */#ifdef CONFIG_SMP#define LOCK_PREFIX "lock ; "#else#define LOCK_PREFIX ""#endif#define ADDR (*(volatile long *) addr)/** * set_bit - Atomically set a bit in memory * @nr: the bit to set * @addr: the address to start counting from * * This function is atomic and may not be reordered.  See __set_bit() * if you do not require the atomic guarantees. * Note that @nr may be almost arbitrarily large; this function is not * restricted to acting on a single-word quantity. */static __inline__ void set_bit(int nr, volatile void * addr){	__asm__ __volatile__( LOCK_PREFIX		"btsl %1,%0"		:"=m" (ADDR)		:"Ir" (nr));}/** * __set_bit - Set a bit in memory * @nr: the bit to set * @addr: the address to start counting from * * Unlike set_bit(), this function is non-atomic and may be reordered. * If it's called on the same region of memory simultaneously, the effect * may be that only one operation succeeds. */static __inline__ void __set_bit(int nr, volatile void * addr){	__asm__(		"btsl %1,%0"		:"=m" (ADDR)		:"Ir" (nr));}/** * clear_bit - Clears a bit in memory * @nr: Bit to clear * @addr: Address to start counting from * * clear_bit() is atomic and may not be reordered.  However, it does * not contain a memory barrier, so if it is used for locking purposes, * you should call smp_mb__before_clear_bit() and/or smp_mb__after_clear_bit() * in order to ensure changes are visible on other processors. */static __inline__ void clear_bit(int nr, volatile void * addr){	__asm__ __volatile__( LOCK_PREFIX		"btrl %1,%0"		:"=m" (ADDR)		:"Ir" (nr));}#define smp_mb__before_clear_bit()	barrier()#define smp_mb__after_clear_bit()	barrier()/** * __change_bit - Toggle a bit in memory * @nr: the bit to set * @addr: the address to start counting from * * Unlike change_bit(), this function is non-atomic and may be reordered. * If it's called on the same region of memory simultaneously, the effect * may be that only one operation succeeds. */static __inline__ void __change_bit(int nr, volatile void * addr){	__asm__ __volatile__(		"btcl %1,%0"		:"=m" (ADDR)		:"Ir" (nr));}/** * change_bit - Toggle a bit in memory * @nr: Bit to clear * @addr: Address to start counting from * * change_bit() is atomic and may not be reordered. * Note that @nr may be almost arbitrarily large; this function is not * restricted to acting on a single-word quantity. */static __inline__ void change_bit(int nr, volatile void * addr){	__asm__ __volatile__( LOCK_PREFIX		"btcl %1,%0"		:"=m" (ADDR)		:"Ir" (nr));}/** * test_and_set_bit - Set a bit and return its old value * @nr: Bit to set * @addr: Address to count from * * This operation is atomic and cannot be reordered. * It also implies a memory barrier. */static __inline__ int test_and_set_bit(int nr, volatile void * addr){	int oldbit;	__asm__ __volatile__( LOCK_PREFIX		"btsl %2,%1\n\tsbbl %0,%0"		:"=r" (oldbit),"=m" (ADDR)		:"Ir" (nr) : "memory");	return oldbit;}/** * __test_and_set_bit - Set a bit and return its old value * @nr: Bit to set * @addr: Address to count from * * This operation is non-atomic and can be reordered. * If two examples of this operation race, one can appear to succeed * but actually fail.  You must protect multiple accesses with a lock. */static __inline__ int __test_and_set_bit(int nr, volatile void * addr){	int oldbit;	__asm__(		"btsl %2,%1\n\tsbbl %0,%0"		:"=r" (oldbit),"=m" (ADDR)		:"Ir" (nr));	return oldbit;}/** * test_and_clear_bit - Clear a bit and return its old value * @nr: Bit to set * @addr: Address to count from * * This operation is atomic and cannot be reordered. * It also implies a memory barrier. */static __inline__ int test_and_clear_bit(int nr, volatile void * addr){	int oldbit;	__asm__ __volatile__( LOCK_PREFIX		"btrl %2,%1\n\tsbbl %0,%0"		:"=r" (oldbit),"=m" (ADDR)		:"Ir" (nr) : "memory");	return oldbit;}/** * __test_and_clear_bit - Clear a bit and return its old value * @nr: Bit to set * @addr: Address to count from * * This operation is non-atomic and can be reordered. * If two examples of this operation race, one can appear to succeed * but actually fail.  You must protect multiple accesses with a lock. */static __inline__ int __test_and_clear_bit(int nr, volatile void * addr){	int oldbit;	__asm__(		"btrl %2,%1\n\tsbbl %0,%0"		:"=r" (oldbit),"=m" (ADDR)		:"Ir" (nr));	return oldbit;}/* WARNING: non atomic and it can be reordered! */static __inline__ int __test_and_change_bit(int nr, volatile void * addr){	int oldbit;	__asm__ __volatile__(		"btcl %2,%1\n\tsbbl %0,%0"		:"=r" (oldbit),"=m" (ADDR)		:"Ir" (nr) : "memory");	return oldbit;}/** * test_and_change_bit - Change a bit and return its new value * @nr: Bit to set * @addr: Address to count from * * This operation is atomic and cannot be reordered. * It also implies a memory barrier. */static __inline__ int test_and_change_bit(int nr, volatile void * addr){	int oldbit;	__asm__ __volatile__( LOCK_PREFIX		"btcl %2,%1\n\tsbbl %0,%0"		:"=r" (oldbit),"=m" (ADDR)		:"Ir" (nr) : "memory");	return oldbit;}#if 0 /* Fool kernel-doc since it doesn't do macros yet *//** * test_bit - Determine whether a bit is set * @nr: bit number to test * @addr: Address to start counting from */static int test_bit(int nr, const volatile void * addr);#endifstatic __inline__ int constant_test_bit(int nr, const volatile void * addr){	return ((1UL << (nr & 31)) & (((const volatile unsigned int *) addr)[nr >> 5])) != 0;}static __inline__ int variable_test_bit(int nr, volatile void * addr){	int oldbit;	__asm__ __volatile__(		"btl %2,%1\n\tsbbl %0,%0"		:"=r" (oldbit)		:"m" (ADDR),"Ir" (nr));	return oldbit;}#define test_bit(nr,addr) \(__builtin_constant_p(nr) ? \ constant_test_bit((nr),(addr)) : \ variable_test_bit((nr),(addr)))/** * find_first_zero_bit - find the first zero bit in a memory region * @addr: The address to start the search at * @size: The maximum size to search * * Returns the bit-number of the first zero bit, not the number of the byte * containing a bit. */static __inline__ int find_first_zero_bit(void * addr, unsigned size){	int d0, d1, d2;	int res;	if (!size)		return 0;	/* This looks at memory. Mark it volatile to tell gcc not to move it around */	__asm__ __volatile__(		"movl $-1,%%eax\n\t"		"xorl %%edx,%%edx\n\t"		"repe; scasl\n\t"		"je 1f\n\t"		"xorl -4(%%edi),%%eax\n\t"		"subl $4,%%edi\n\t"		"bsfl %%eax,%%edx\n"		"1:\tsubl %%ebx,%%edi\n\t"		"shll $3,%%edi\n\t"		"addl %%edi,%%edx"		:"=d" (res), "=&c" (d0), "=&D" (d1), "=&a" (d2)		:"1" ((size + 31) >> 5), "2" (addr), "b" (addr));	return res;}/** * find_next_zero_bit - find the first zero bit in a memory region * @addr: The address to base the search on * @offset: The bitnumber to start searching at * @size: The maximum size to search */static __inline__ int find_next_zero_bit (void * addr, int size, int offset){	unsigned long * p = ((unsigned long *) addr) + (offset >> 5);	int set = 0, bit = offset & 31, res;	if (bit) {		/*		 * Look for zero in first byte		 */		__asm__("bsfl %1,%0\n\t"			"jne 1f\n\t"			"movl $32, %0\n"			"1:"			: "=r" (set)			: "r" (~(*p >> bit)));		if (set < (32 - bit))			return set + offset;		set = 32 - bit;		p++;	}	/*	 * No zero yet, search remaining full bytes for a zero	 */	res = find_first_zero_bit (p, size - 32 * (p - (unsigned long *) addr));	return (offset + set + res);}/** * ffz - find first zero in word. * @word: The word to search * * Undefined if no zero exists, so code should check against ~0UL first. */static __inline__ unsigned long ffz(unsigned long word){	__asm__("bsfl %1,%0"		:"=r" (word)		:"r" (~word));	return word;}#ifdef __KERNEL__/** * ffs - find first bit set * @x: the word to search * * This is defined the same way as * the libc and compiler builtin ffs routines, therefore * differs in spirit from the above ffz (man ffs). */static __inline__ int ffs(int x){	int r;	__asm__("bsfl %1,%0\n\t"		"jnz 1f\n\t"		"movl $-1,%0\n"		"1:" : "=r" (r) : "g" (x));	return r+1;}/** * hweightN - returns the hamming weight of a N-bit word * @x: the word to weigh * * The Hamming Weight of a number is the total number of bits set in it. */#define hweight32(x) generic_hweight32(x)#define hweight16(x) generic_hweight16(x)#define hweight8(x) generic_hweight8(x)#endif /* __KERNEL__ */#ifdef __KERNEL__#define ext2_set_bit                 __test_and_set_bit#define ext2_clear_bit               __test_and_clear_bit#define ext2_test_bit                test_bit#define ext2_find_first_zero_bit     find_first_zero_bit#define ext2_find_next_zero_bit      find_next_zero_bit/* Bitmap functions for the minix filesystem.  */#define minix_test_and_set_bit(nr,addr) __test_and_set_bit(nr,addr)#define minix_set_bit(nr,addr) __set_bit(nr,addr)#define minix_test_and_clear_bit(nr,addr) __test_and_clear_bit(nr,addr)#define minix_test_bit(nr,addr) test_bit(nr,addr)#define minix_find_first_zero_bit(addr,size) find_first_zero_bit(addr,size)#endif /* __KERNEL__ */#endif /* _I386_BITOPS_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久99免费| 热久久免费视频| 日本美女视频一区二区| 国产成人午夜电影网| 欧美最新大片在线看| 久久久综合网站| 天天综合网 天天综合色| 岛国av在线一区| 日韩美女视频一区二区在线观看| 中文字幕一区二区三中文字幕| 日本vs亚洲vs韩国一区三区 | 国产三级精品在线| 日韩精品色哟哟| 91尤物视频在线观看| 日本一区二区三区久久久久久久久不 | 麻豆精品国产91久久久久久| 色综合中文字幕| 国产精品五月天| 国产中文一区二区三区| 欧美一级一级性生活免费录像| 一区二区三区在线观看国产| 盗摄精品av一区二区三区| 精品捆绑美女sm三区| 蜜桃一区二区三区在线观看| 欧美日韩国产一级| 亚洲综合免费观看高清完整版 | 美国十次了思思久久精品导航| 在线精品视频小说1| 综合久久给合久久狠狠狠97色| 国产乱人伦偷精品视频不卡| 欧美成人精精品一区二区频| 青青草伊人久久| 欧美电视剧免费观看| 美女诱惑一区二区| 欧美刺激脚交jootjob| 免费观看久久久4p| 日韩一级成人av| 狠狠色狠狠色合久久伊人| 91精品国产91久久久久久最新毛片| 亚洲综合精品久久| 欧美日韩国产高清一区二区| 亚洲电影中文字幕在线观看| 欧美人与z0zoxxxx视频| 免费xxxx性欧美18vr| 欧美电影免费观看高清完整版在| 免费高清在线视频一区·| 精品欧美乱码久久久久久1区2区| 加勒比av一区二区| 国产精品日日摸夜夜摸av| 成人av动漫在线| 一区二区成人在线| 7777精品伊人久久久大香线蕉最新版 | 国产精品久久久久影院| 91老师片黄在线观看| 亚洲va在线va天堂| 日韩一区二区三区视频在线 | 久久尤物电影视频在线观看| 国产成人av电影免费在线观看| 国产精品久久久久永久免费观看| 91成人国产精品| 免费美女久久99| 欧美国产激情二区三区| 欧美在线一二三| 欧美aaaaa成人免费观看视频| 精品1区2区在线观看| 91亚洲精品久久久蜜桃网站| 日韩中文欧美在线| 亚洲图片欧美色图| 911精品国产一区二区在线| 国内精品国产成人国产三级粉色| 国产精品剧情在线亚洲| 91.com在线观看| 成年人国产精品| 美腿丝袜在线亚洲一区| 中文字幕一区二区三区不卡| 这里只有精品电影| 99久久久无码国产精品| 日韩精品亚洲一区| 亚洲欧美自拍偷拍| 精品久久人人做人人爰| 日本久久精品电影| 国产精品18久久久久久久久| 亚洲成人在线观看视频| 国产女主播在线一区二区| 欧美日韩国产精品自在自线| 成人午夜大片免费观看| 蜜桃精品视频在线| 亚洲一区二区三区四区在线 | 欧美日韩一区二区电影| 国产91清纯白嫩初高中在线观看| 奇米四色…亚洲| 亚洲欧美日韩国产成人精品影院| 久久伊人中文字幕| 777奇米成人网| 欧美亚洲图片小说| aa级大片欧美| 国产成人鲁色资源国产91色综| 日本一区中文字幕| 亚洲一线二线三线久久久| 中文字幕在线观看一区二区| xnxx国产精品| 日韩欧美123| 欧美一区二区啪啪| 91精品国产91久久综合桃花| 欧美丝袜自拍制服另类| 在线欧美日韩精品| 91性感美女视频| 99久久精品一区二区| 成人午夜电影网站| 国产91精品免费| 国产河南妇女毛片精品久久久 | 波多野结衣一区二区三区| 国产精品综合二区| 国产一区二区网址| 国模少妇一区二区三区| 久久精品国产一区二区| 精品亚洲国产成人av制服丝袜| 秋霞午夜鲁丝一区二区老狼| 日韩电影免费在线| 免费看日韩精品| 久久99九九99精品| 国产乱码一区二区三区| 国产成人综合亚洲91猫咪| 国产盗摄一区二区| fc2成人免费人成在线观看播放 | 欧美久久久久免费| 制服丝袜日韩国产| 精品久久久久一区二区国产| 精品乱码亚洲一区二区不卡| 久久久久久久久蜜桃| 国产色产综合产在线视频| 国产精品三级av| 一区二区成人在线视频| 日韩av高清在线观看| 久久er99精品| 成人18精品视频| 欧美日韩一区二区三区在线看| 666欧美在线视频| 欧美mv日韩mv国产| 国产精品乱人伦| 一区二区三区中文字幕在线观看| 亚洲成a人片综合在线| 裸体一区二区三区| 不卡av免费在线观看| 欧美专区亚洲专区| 精品三级av在线| 国产精品久久99| 午夜激情综合网| 国产剧情一区二区三区| 99久久综合国产精品| 欧美日本免费一区二区三区| 精品国产一区二区三区忘忧草| 国产精品区一区二区三| 亚洲成av人片一区二区梦乃| 狠狠色狠狠色综合系列| 日本精品一级二级| 欧美精品一区二| 亚洲综合一区二区三区| 国产一二三精品| 欧美影院午夜播放| 国产亚洲一本大道中文在线| 亚洲最新视频在线播放| 国产福利视频一区二区三区| 欧美三级欧美一级| 国产欧美日韩三区| 蜜臀久久99精品久久久画质超高清| 国产成人免费视频| 欧美一级在线观看| 亚洲靠逼com| 国产乱妇无码大片在线观看| 91精品国产全国免费观看| 国产精品久久午夜夜伦鲁鲁| 久久99精品国产麻豆不卡| 在线观看日产精品| 国产精品免费看片| 韩国一区二区在线观看| 欧美日韩综合不卡| 亚洲婷婷综合色高清在线| 激情图片小说一区| 成人欧美一区二区三区黑人麻豆| 亚洲午夜在线电影| 欧美日韩高清不卡| 国产福利精品导航| 国内精品久久久久影院色| 欧洲色大大久久| 国产精品视频第一区| 激情图片小说一区| 日韩三级.com| 日韩成人免费在线| 欧美午夜一区二区三区| 亚洲丝袜美腿综合| jlzzjlzz亚洲日本少妇| 中文字幕av不卡| 成人在线视频首页| 欧美激情一区二区三区四区| 国产成人综合精品三级| 国产日韩欧美精品综合| 国产福利一区二区三区视频在线| 精品少妇一区二区三区日产乱码 | 91在线云播放|