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

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

?? bitops.h

?? UBOOT 源碼
?? 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一区二区三区免费野_久草精品视频
欧美日韩色综合| 国产精品一区二区久久精品爱涩| 国产午夜精品理论片a级大结局 | 欧美一区二区三区性视频| 91视频观看免费| 91国产免费看| 99riav一区二区三区| 不卡电影一区二区三区| av电影天堂一区二区在线| 成人免费视频caoporn| voyeur盗摄精品| 色哟哟欧美精品| 欧美精品aⅴ在线视频| 欧美一区二区三区白人| 日韩欧美成人午夜| 久久影院电视剧免费观看| 久久久亚洲午夜电影| 亚洲国产精品t66y| 亚洲精品中文在线影院| 亚洲一区在线电影| 日本在线不卡一区| 精品综合免费视频观看| 国产成人精品三级麻豆| 91在线视频播放| 欧美高清视频不卡网| 欧美成人video| 国产精品久久毛片a| 亚洲欧美电影院| 免费看日韩a级影片| 国产高清在线观看免费不卡| 91视频精品在这里| 欧美一卡二卡在线| 中文无字幕一区二区三区| 亚洲欧美国产77777| 精品一区二区在线看| 91视频www| 亚洲精品在线网站| 亚洲精品国产无天堂网2021| 久久精品99久久久| 91亚洲国产成人精品一区二三| 欧美精品在欧美一区二区少妇| 久久精品一区二区三区四区| 一区二区三区在线视频免费观看| 美女被吸乳得到大胸91| av不卡免费在线观看| 日韩亚洲欧美高清| 国产精品国产成人国产三级| 美女国产一区二区三区| 欧美午夜在线观看| 久久久不卡网国产精品二区 | 色成年激情久久综合| 日韩视频不卡中文| 尤物av一区二区| 成人一区二区三区在线观看 | 另类中文字幕网| 在线精品视频一区二区| 久久久美女艺术照精彩视频福利播放 | 成人app在线观看| 日韩欧美一区中文| 亚洲动漫第一页| 99re6这里只有精品视频在线观看| 欧美一三区三区四区免费在线看 | 国产福利一区二区三区视频在线| 欧美日韩精品欧美日韩精品一 | 亚洲在线观看免费视频| 成人深夜在线观看| 久久综合久久综合久久综合| 天堂在线一区二区| 欧美在线小视频| 亚洲精品中文在线| 91在线一区二区三区| 国产欧美日韩卡一| 国产福利一区二区三区在线视频| 欧美成人video| 国模冰冰炮一区二区| 欧美一卡2卡三卡4卡5免费| 亚洲123区在线观看| 欧美日本一区二区三区四区| 亚洲最新在线观看| 欧美在线播放高清精品| 一区二区三区中文在线| 欧美视频一区二区三区四区| 亚洲综合视频在线观看| 欧美午夜精品久久久久久孕妇| 中文字幕在线观看不卡视频| av网站免费线看精品| 亚洲视频香蕉人妖| 欧美系列一区二区| 日产国产欧美视频一区精品| 91精品国产麻豆| 精品一区二区三区的国产在线播放| 精品国产一区二区三区不卡 | 中文字幕一区二区三区蜜月| 94色蜜桃网一区二区三区| 亚洲综合久久久| 91麻豆精品久久久久蜜臀| 日韩高清欧美激情| 久久久不卡网国产精品二区| 99久久精品久久久久久清纯| 亚洲香蕉伊在人在线观| 欧美一级夜夜爽| 丰满岳乱妇一区二区三区| 亚洲欧美视频一区| 欧美一二三四区在线| 国产福利精品一区| 亚洲老司机在线| 精品少妇一区二区三区日产乱码| 国产黄色精品视频| 亚洲一级在线观看| 久久久久国色av免费看影院| 91色porny蝌蚪| 免费人成黄页网站在线一区二区| 中文字幕的久久| 91.麻豆视频| 91在线观看高清| 蜜桃视频在线观看一区二区| 国产精品嫩草影院av蜜臀| 欧美日韩免费不卡视频一区二区三区| 久久超级碰视频| 一区二区三区小说| 久久久久久久久久久黄色| 欧美性高清videossexo| 国产99久久久久久免费看农村| 亚洲午夜精品在线| 国产精品久久久久一区二区三区 | 欧美精品123区| 国产激情一区二区三区四区 | 91美女蜜桃在线| 精品一区二区三区蜜桃| 亚洲国产中文字幕在线视频综合| 精品国产制服丝袜高跟| 欧美日韩在线电影| 波多野结衣中文一区| 麻豆高清免费国产一区| 亚洲成人在线免费| 综合久久国产九一剧情麻豆| 国产亚洲欧美日韩日本| 91麻豆精品国产91久久久久| 日本高清免费不卡视频| 成人免费视频一区二区| 激情图区综合网| 青青草原综合久久大伊人精品| 一区二区三区在线观看视频| 中文在线免费一区三区高中清不卡| 日韩欧美中文字幕一区| 欧美日韩一级片在线观看| 色又黄又爽网站www久久| 懂色av一区二区三区免费观看| 久久99精品一区二区三区三区| 日韩精品福利网| 日产国产欧美视频一区精品| 日本中文在线一区| 美女脱光内衣内裤视频久久网站 | 亚洲精品五月天| 中文字幕日本不卡| 国产精品国产成人国产三级 | 91在线一区二区三区| 久久国产福利国产秒拍| 日本不卡一二三| 蜜臀av性久久久久蜜臀av麻豆| 午夜视频一区二区| 偷拍一区二区三区| 日本中文在线一区| 另类成人小视频在线| 精品制服美女久久| 国产乱色国产精品免费视频| 国产精品99久久久久久久vr| 成人a区在线观看| 色综合中文字幕| 欧美日韩成人一区| 欧美成人video| 中文字幕精品三区| 亚洲精品你懂的| 亚洲成人av资源| 精品中文av资源站在线观看| 成人性色生活片免费看爆迷你毛片| www.一区二区| 欧美精品乱人伦久久久久久| 精品国产自在久精品国产| 中文字幕的久久| 日日摸夜夜添夜夜添国产精品 | 国产精品毛片久久久久久久| 亚洲精选免费视频| 麻豆精品国产传媒mv男同| 国产主播一区二区| 99re成人精品视频| 制服.丝袜.亚洲.中文.综合| 国产亚洲污的网站| 亚洲国产综合视频在线观看| 国产在线不卡视频| 色呦呦日韩精品| 久久综合色播五月| 亚洲与欧洲av电影| 国产精品性做久久久久久| 欧美日韩中文另类| 国产精品美女久久久久久| 日韩电影在线看| 色婷婷久久综合| 国产午夜精品久久久久久久| 亚洲成av人片观看|