PageRenderTime 53ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/arch/arm/lib/testsetbit.S

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase
Assembly | 20 lines | 19 code | 1 blank | 0 comment | 0 complexity | 27985613f7b032648cf95d1b573da5c5 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
  1. /*
  2. * linux/arch/arm/lib/testsetbit.S
  3. *
  4. * Copyright (C) 1995-1996 Russell King
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <linux/linkage.h>
  11. #include <asm/assembler.h>
  12. #include "bitops.h"
  13. .text
  14. ENTRY(_test_and_set_bit_be)
  15. eor r0, r0, #0x18 @ big endian byte ordering
  16. ENTRY(_test_and_set_bit_le)
  17. testop orreq, streqb
  18. ENDPROC(_test_and_set_bit_be)
  19. ENDPROC(_test_and_set_bit_le)