bitops.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (c) 1994 - 1997, 99, 2000, 06, 07 Ralf Baechle (ralf@linux-mips.org)
  7. * Copyright (c) 1999, 2000 Silicon Graphics, Inc.
  8. */
  9. #ifndef _ASM_BITOPS_H
  10. #define _ASM_BITOPS_H
  11. #ifndef _LINUX_BITOPS_H
  12. #error only <linux/bitops.h> can be included directly
  13. #endif
  14. #include <linux/compiler.h>
  15. #include <linux/types.h>
  16. #include <asm/barrier.h>
  17. #include <asm/byteorder.h> /* sigh ... */
  18. #include <asm/compiler.h>
  19. #include <asm/cpu-features.h>
  20. #include <asm/sgidefs.h>
  21. #include <asm/war.h>
  22. #if _MIPS_SZLONG == 32
  23. #define SZLONG_LOG 5
  24. #define SZLONG_MASK 31UL
  25. #define __LL "ll "
  26. #define __SC "sc "
  27. #define __INS "ins "
  28. #define __EXT "ext "
  29. #elif _MIPS_SZLONG == 64
  30. #define SZLONG_LOG 6
  31. #define SZLONG_MASK 63UL
  32. #define __LL "lld "
  33. #define __SC "scd "
  34. #define __INS "dins "
  35. #define __EXT "dext "
  36. #endif
  37. /*
  38. * These are the "slower" versions of the functions and are in bitops.c.
  39. * These functions call raw_local_irq_{save,restore}().
  40. */
  41. void __mips_set_bit(unsigned long nr, volatile unsigned long *addr);
  42. void __mips_clear_bit(unsigned long nr, volatile unsigned long *addr);
  43. void __mips_change_bit(unsigned long nr, volatile unsigned long *addr);
  44. int __mips_test_and_set_bit(unsigned long nr,
  45. volatile unsigned long *addr);
  46. int __mips_test_and_set_bit_lock(unsigned long nr,
  47. volatile unsigned long *addr);
  48. int __mips_test_and_clear_bit(unsigned long nr,
  49. volatile unsigned long *addr);
  50. int __mips_test_and_change_bit(unsigned long nr,
  51. volatile unsigned long *addr);
  52. /*
  53. * set_bit - Atomically set a bit in memory
  54. * @nr: the bit to set
  55. * @addr: the address to start counting from
  56. *
  57. * This function is atomic and may not be reordered. See __set_bit()
  58. * if you do not require the atomic guarantees.
  59. * Note that @nr may be almost arbitrarily large; this function is not
  60. * restricted to acting on a single-word quantity.
  61. */
  62. static inline void set_bit(unsigned long nr, volatile unsigned long *addr)
  63. {
  64. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  65. int bit = nr & SZLONG_MASK;
  66. unsigned long temp;
  67. if (kernel_uses_llsc && R10000_LLSC_WAR) {
  68. __asm__ __volatile__(
  69. " .set arch=r4000 \n"
  70. "1: " __LL "%0, %1 # set_bit \n"
  71. " or %0, %2 \n"
  72. " " __SC "%0, %1 \n"
  73. " beqzl %0, 1b \n"
  74. " .set mips0 \n"
  75. : "=&r" (temp), "=" GCC_OFF12_ASM() (*m)
  76. : "ir" (1UL << bit), GCC_OFF12_ASM() (*m));
  77. #ifdef CONFIG_CPU_MIPSR2
  78. } else if (kernel_uses_llsc && __builtin_constant_p(bit)) {
  79. do {
  80. __asm__ __volatile__(
  81. " " __LL "%0, %1 # set_bit \n"
  82. " " __INS "%0, %3, %2, 1 \n"
  83. " " __SC "%0, %1 \n"
  84. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m)
  85. : "ir" (bit), "r" (~0));
  86. } while (unlikely(!temp));
  87. #endif /* CONFIG_CPU_MIPSR2 */
  88. } else if (kernel_uses_llsc) {
  89. do {
  90. __asm__ __volatile__(
  91. " .set arch=r4000 \n"
  92. " " __LL "%0, %1 # set_bit \n"
  93. " or %0, %2 \n"
  94. " " __SC "%0, %1 \n"
  95. " .set mips0 \n"
  96. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m)
  97. : "ir" (1UL << bit));
  98. } while (unlikely(!temp));
  99. } else
  100. __mips_set_bit(nr, addr);
  101. }
  102. /*
  103. * clear_bit - Clears a bit in memory
  104. * @nr: Bit to clear
  105. * @addr: Address to start counting from
  106. *
  107. * clear_bit() is atomic and may not be reordered. However, it does
  108. * not contain a memory barrier, so if it is used for locking purposes,
  109. * you should call smp_mb__before_atomic() and/or smp_mb__after_atomic()
  110. * in order to ensure changes are visible on other processors.
  111. */
  112. static inline void clear_bit(unsigned long nr, volatile unsigned long *addr)
  113. {
  114. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  115. int bit = nr & SZLONG_MASK;
  116. unsigned long temp;
  117. if (kernel_uses_llsc && R10000_LLSC_WAR) {
  118. __asm__ __volatile__(
  119. " .set arch=r4000 \n"
  120. "1: " __LL "%0, %1 # clear_bit \n"
  121. " and %0, %2 \n"
  122. " " __SC "%0, %1 \n"
  123. " beqzl %0, 1b \n"
  124. " .set mips0 \n"
  125. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m)
  126. : "ir" (~(1UL << bit)));
  127. #ifdef CONFIG_CPU_MIPSR2
  128. } else if (kernel_uses_llsc && __builtin_constant_p(bit)) {
  129. do {
  130. __asm__ __volatile__(
  131. " " __LL "%0, %1 # clear_bit \n"
  132. " " __INS "%0, $0, %2, 1 \n"
  133. " " __SC "%0, %1 \n"
  134. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m)
  135. : "ir" (bit));
  136. } while (unlikely(!temp));
  137. #endif /* CONFIG_CPU_MIPSR2 */
  138. } else if (kernel_uses_llsc) {
  139. do {
  140. __asm__ __volatile__(
  141. " .set arch=r4000 \n"
  142. " " __LL "%0, %1 # clear_bit \n"
  143. " and %0, %2 \n"
  144. " " __SC "%0, %1 \n"
  145. " .set mips0 \n"
  146. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m)
  147. : "ir" (~(1UL << bit)));
  148. } while (unlikely(!temp));
  149. } else
  150. __mips_clear_bit(nr, addr);
  151. }
  152. /*
  153. * clear_bit_unlock - Clears a bit in memory
  154. * @nr: Bit to clear
  155. * @addr: Address to start counting from
  156. *
  157. * clear_bit() is atomic and implies release semantics before the memory
  158. * operation. It can be used for an unlock.
  159. */
  160. static inline void clear_bit_unlock(unsigned long nr, volatile unsigned long *addr)
  161. {
  162. smp_mb__before_atomic();
  163. clear_bit(nr, addr);
  164. }
  165. /*
  166. * change_bit - Toggle a bit in memory
  167. * @nr: Bit to change
  168. * @addr: Address to start counting from
  169. *
  170. * change_bit() is atomic and may not be reordered.
  171. * Note that @nr may be almost arbitrarily large; this function is not
  172. * restricted to acting on a single-word quantity.
  173. */
  174. static inline void change_bit(unsigned long nr, volatile unsigned long *addr)
  175. {
  176. int bit = nr & SZLONG_MASK;
  177. if (kernel_uses_llsc && R10000_LLSC_WAR) {
  178. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  179. unsigned long temp;
  180. __asm__ __volatile__(
  181. " .set arch=r4000 \n"
  182. "1: " __LL "%0, %1 # change_bit \n"
  183. " xor %0, %2 \n"
  184. " " __SC "%0, %1 \n"
  185. " beqzl %0, 1b \n"
  186. " .set mips0 \n"
  187. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m)
  188. : "ir" (1UL << bit));
  189. } else if (kernel_uses_llsc) {
  190. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  191. unsigned long temp;
  192. do {
  193. __asm__ __volatile__(
  194. " .set arch=r4000 \n"
  195. " " __LL "%0, %1 # change_bit \n"
  196. " xor %0, %2 \n"
  197. " " __SC "%0, %1 \n"
  198. " .set mips0 \n"
  199. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m)
  200. : "ir" (1UL << bit));
  201. } while (unlikely(!temp));
  202. } else
  203. __mips_change_bit(nr, addr);
  204. }
  205. /*
  206. * test_and_set_bit - Set a bit and return its old value
  207. * @nr: Bit to set
  208. * @addr: Address to count from
  209. *
  210. * This operation is atomic and cannot be reordered.
  211. * It also implies a memory barrier.
  212. */
  213. static inline int test_and_set_bit(unsigned long nr,
  214. volatile unsigned long *addr)
  215. {
  216. int bit = nr & SZLONG_MASK;
  217. unsigned long res;
  218. smp_mb__before_llsc();
  219. if (kernel_uses_llsc && R10000_LLSC_WAR) {
  220. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  221. unsigned long temp;
  222. __asm__ __volatile__(
  223. " .set arch=r4000 \n"
  224. "1: " __LL "%0, %1 # test_and_set_bit \n"
  225. " or %2, %0, %3 \n"
  226. " " __SC "%2, %1 \n"
  227. " beqzl %2, 1b \n"
  228. " and %2, %0, %3 \n"
  229. " .set mips0 \n"
  230. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m), "=&r" (res)
  231. : "r" (1UL << bit)
  232. : "memory");
  233. } else if (kernel_uses_llsc) {
  234. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  235. unsigned long temp;
  236. do {
  237. __asm__ __volatile__(
  238. " .set arch=r4000 \n"
  239. " " __LL "%0, %1 # test_and_set_bit \n"
  240. " or %2, %0, %3 \n"
  241. " " __SC "%2, %1 \n"
  242. " .set mips0 \n"
  243. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m), "=&r" (res)
  244. : "r" (1UL << bit)
  245. : "memory");
  246. } while (unlikely(!res));
  247. res = temp & (1UL << bit);
  248. } else
  249. res = __mips_test_and_set_bit(nr, addr);
  250. smp_llsc_mb();
  251. return res != 0;
  252. }
  253. /*
  254. * test_and_set_bit_lock - Set a bit and return its old value
  255. * @nr: Bit to set
  256. * @addr: Address to count from
  257. *
  258. * This operation is atomic and implies acquire ordering semantics
  259. * after the memory operation.
  260. */
  261. static inline int test_and_set_bit_lock(unsigned long nr,
  262. volatile unsigned long *addr)
  263. {
  264. int bit = nr & SZLONG_MASK;
  265. unsigned long res;
  266. if (kernel_uses_llsc && R10000_LLSC_WAR) {
  267. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  268. unsigned long temp;
  269. __asm__ __volatile__(
  270. " .set arch=r4000 \n"
  271. "1: " __LL "%0, %1 # test_and_set_bit \n"
  272. " or %2, %0, %3 \n"
  273. " " __SC "%2, %1 \n"
  274. " beqzl %2, 1b \n"
  275. " and %2, %0, %3 \n"
  276. " .set mips0 \n"
  277. : "=&r" (temp), "+m" (*m), "=&r" (res)
  278. : "r" (1UL << bit)
  279. : "memory");
  280. } else if (kernel_uses_llsc) {
  281. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  282. unsigned long temp;
  283. do {
  284. __asm__ __volatile__(
  285. " .set arch=r4000 \n"
  286. " " __LL "%0, %1 # test_and_set_bit \n"
  287. " or %2, %0, %3 \n"
  288. " " __SC "%2, %1 \n"
  289. " .set mips0 \n"
  290. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m), "=&r" (res)
  291. : "r" (1UL << bit)
  292. : "memory");
  293. } while (unlikely(!res));
  294. res = temp & (1UL << bit);
  295. } else
  296. res = __mips_test_and_set_bit_lock(nr, addr);
  297. smp_llsc_mb();
  298. return res != 0;
  299. }
  300. /*
  301. * test_and_clear_bit - Clear a bit and return its old value
  302. * @nr: Bit to clear
  303. * @addr: Address to count from
  304. *
  305. * This operation is atomic and cannot be reordered.
  306. * It also implies a memory barrier.
  307. */
  308. static inline int test_and_clear_bit(unsigned long nr,
  309. volatile unsigned long *addr)
  310. {
  311. int bit = nr & SZLONG_MASK;
  312. unsigned long res;
  313. smp_mb__before_llsc();
  314. if (kernel_uses_llsc && R10000_LLSC_WAR) {
  315. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  316. unsigned long temp;
  317. __asm__ __volatile__(
  318. " .set arch=r4000 \n"
  319. "1: " __LL "%0, %1 # test_and_clear_bit \n"
  320. " or %2, %0, %3 \n"
  321. " xor %2, %3 \n"
  322. " " __SC "%2, %1 \n"
  323. " beqzl %2, 1b \n"
  324. " and %2, %0, %3 \n"
  325. " .set mips0 \n"
  326. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m), "=&r" (res)
  327. : "r" (1UL << bit)
  328. : "memory");
  329. #ifdef CONFIG_CPU_MIPSR2
  330. } else if (kernel_uses_llsc && __builtin_constant_p(nr)) {
  331. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  332. unsigned long temp;
  333. do {
  334. __asm__ __volatile__(
  335. " " __LL "%0, %1 # test_and_clear_bit \n"
  336. " " __EXT "%2, %0, %3, 1 \n"
  337. " " __INS "%0, $0, %3, 1 \n"
  338. " " __SC "%0, %1 \n"
  339. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m), "=&r" (res)
  340. : "ir" (bit)
  341. : "memory");
  342. } while (unlikely(!temp));
  343. #endif
  344. } else if (kernel_uses_llsc) {
  345. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  346. unsigned long temp;
  347. do {
  348. __asm__ __volatile__(
  349. " .set arch=r4000 \n"
  350. " " __LL "%0, %1 # test_and_clear_bit \n"
  351. " or %2, %0, %3 \n"
  352. " xor %2, %3 \n"
  353. " " __SC "%2, %1 \n"
  354. " .set mips0 \n"
  355. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m), "=&r" (res)
  356. : "r" (1UL << bit)
  357. : "memory");
  358. } while (unlikely(!res));
  359. res = temp & (1UL << bit);
  360. } else
  361. res = __mips_test_and_clear_bit(nr, addr);
  362. smp_llsc_mb();
  363. return res != 0;
  364. }
  365. /*
  366. * test_and_change_bit - Change a bit and return its old value
  367. * @nr: Bit to change
  368. * @addr: Address to count from
  369. *
  370. * This operation is atomic and cannot be reordered.
  371. * It also implies a memory barrier.
  372. */
  373. static inline int test_and_change_bit(unsigned long nr,
  374. volatile unsigned long *addr)
  375. {
  376. int bit = nr & SZLONG_MASK;
  377. unsigned long res;
  378. smp_mb__before_llsc();
  379. if (kernel_uses_llsc && R10000_LLSC_WAR) {
  380. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  381. unsigned long temp;
  382. __asm__ __volatile__(
  383. " .set arch=r4000 \n"
  384. "1: " __LL "%0, %1 # test_and_change_bit \n"
  385. " xor %2, %0, %3 \n"
  386. " " __SC "%2, %1 \n"
  387. " beqzl %2, 1b \n"
  388. " and %2, %0, %3 \n"
  389. " .set mips0 \n"
  390. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m), "=&r" (res)
  391. : "r" (1UL << bit)
  392. : "memory");
  393. } else if (kernel_uses_llsc) {
  394. unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
  395. unsigned long temp;
  396. do {
  397. __asm__ __volatile__(
  398. " .set arch=r4000 \n"
  399. " " __LL "%0, %1 # test_and_change_bit \n"
  400. " xor %2, %0, %3 \n"
  401. " " __SC "\t%2, %1 \n"
  402. " .set mips0 \n"
  403. : "=&r" (temp), "+" GCC_OFF12_ASM() (*m), "=&r" (res)
  404. : "r" (1UL << bit)
  405. : "memory");
  406. } while (unlikely(!res));
  407. res = temp & (1UL << bit);
  408. } else
  409. res = __mips_test_and_change_bit(nr, addr);
  410. smp_llsc_mb();
  411. return res != 0;
  412. }
  413. #include <asm-generic/bitops/non-atomic.h>
  414. /*
  415. * __clear_bit_unlock - Clears a bit in memory
  416. * @nr: Bit to clear
  417. * @addr: Address to start counting from
  418. *
  419. * __clear_bit() is non-atomic and implies release semantics before the memory
  420. * operation. It can be used for an unlock if no other CPUs can concurrently
  421. * modify other bits in the word.
  422. */
  423. static inline void __clear_bit_unlock(unsigned long nr, volatile unsigned long *addr)
  424. {
  425. smp_mb();
  426. __clear_bit(nr, addr);
  427. }
  428. /*
  429. * Return the bit position (0..63) of the most significant 1 bit in a word
  430. * Returns -1 if no 1 bit exists
  431. */
  432. static inline unsigned long __fls(unsigned long word)
  433. {
  434. int num;
  435. if (BITS_PER_LONG == 32 &&
  436. __builtin_constant_p(cpu_has_clo_clz) && cpu_has_clo_clz) {
  437. __asm__(
  438. " .set push \n"
  439. " .set mips32 \n"
  440. " clz %0, %1 \n"
  441. " .set pop \n"
  442. : "=r" (num)
  443. : "r" (word));
  444. return 31 - num;
  445. }
  446. if (BITS_PER_LONG == 64 &&
  447. __builtin_constant_p(cpu_has_mips64) && cpu_has_mips64) {
  448. __asm__(
  449. " .set push \n"
  450. " .set mips64 \n"
  451. " dclz %0, %1 \n"
  452. " .set pop \n"
  453. : "=r" (num)
  454. : "r" (word));
  455. return 63 - num;
  456. }
  457. num = BITS_PER_LONG - 1;
  458. #if BITS_PER_LONG == 64
  459. if (!(word & (~0ul << 32))) {
  460. num -= 32;
  461. word <<= 32;
  462. }
  463. #endif
  464. if (!(word & (~0ul << (BITS_PER_LONG-16)))) {
  465. num -= 16;
  466. word <<= 16;
  467. }
  468. if (!(word & (~0ul << (BITS_PER_LONG-8)))) {
  469. num -= 8;
  470. word <<= 8;
  471. }
  472. if (!(word & (~0ul << (BITS_PER_LONG-4)))) {
  473. num -= 4;
  474. word <<= 4;
  475. }
  476. if (!(word & (~0ul << (BITS_PER_LONG-2)))) {
  477. num -= 2;
  478. word <<= 2;
  479. }
  480. if (!(word & (~0ul << (BITS_PER_LONG-1))))
  481. num -= 1;
  482. return num;
  483. }
  484. /*
  485. * __ffs - find first bit in word.
  486. * @word: The word to search
  487. *
  488. * Returns 0..SZLONG-1
  489. * Undefined if no bit exists, so code should check against 0 first.
  490. */
  491. static inline unsigned long __ffs(unsigned long word)
  492. {
  493. return __fls(word & -word);
  494. }
  495. /*
  496. * fls - find last bit set.
  497. * @word: The word to search
  498. *
  499. * This is defined the same way as ffs.
  500. * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32.
  501. */
  502. static inline int fls(int x)
  503. {
  504. int r;
  505. if (__builtin_constant_p(cpu_has_clo_clz) && cpu_has_clo_clz) {
  506. __asm__(
  507. " .set push \n"
  508. " .set mips32 \n"
  509. " clz %0, %1 \n"
  510. " .set pop \n"
  511. : "=r" (x)
  512. : "r" (x));
  513. return 32 - x;
  514. }
  515. r = 32;
  516. if (!x)
  517. return 0;
  518. if (!(x & 0xffff0000u)) {
  519. x <<= 16;
  520. r -= 16;
  521. }
  522. if (!(x & 0xff000000u)) {
  523. x <<= 8;
  524. r -= 8;
  525. }
  526. if (!(x & 0xf0000000u)) {
  527. x <<= 4;
  528. r -= 4;
  529. }
  530. if (!(x & 0xc0000000u)) {
  531. x <<= 2;
  532. r -= 2;
  533. }
  534. if (!(x & 0x80000000u)) {
  535. x <<= 1;
  536. r -= 1;
  537. }
  538. return r;
  539. }
  540. #include <asm-generic/bitops/fls64.h>
  541. /*
  542. * ffs - find first bit set.
  543. * @word: The word to search
  544. *
  545. * This is defined the same way as
  546. * the libc and compiler builtin ffs routines, therefore
  547. * differs in spirit from the above ffz (man ffs).
  548. */
  549. static inline int ffs(int word)
  550. {
  551. if (!word)
  552. return 0;
  553. return fls(word & -word);
  554. }
  555. #include <asm-generic/bitops/ffz.h>
  556. #include <asm-generic/bitops/find.h>
  557. #ifdef __KERNEL__
  558. #include <asm-generic/bitops/sched.h>
  559. #include <asm/arch_hweight.h>
  560. #include <asm-generic/bitops/const_hweight.h>
  561. #include <asm-generic/bitops/le.h>
  562. #include <asm-generic/bitops/ext2-atomic.h>
  563. #endif /* __KERNEL__ */
  564. #endif /* _ASM_BITOPS_H */