swh:1:snp:c3bf2749e3476071fa748f67b0ffa2fdc5fe49d9
Raw File
Tip revision: b37fa16e78d6f9790462b3181602a26b5af36260 authored by Linus Torvalds on 22 July 2010, 19:13:38 UTC
Linux 2.6.35-rc6
Tip revision: b37fa16
__avr32_lsl64.S
/*
 * Copyright (C) 2005-2006 Atmel Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

	/*
	 * DWtype __avr32_lsl64(DWtype u, word_type b)
	 */
	.text
	.global	__avr32_lsl64
	.type	__avr32_lsl64,@function
__avr32_lsl64:
	cp.w	r12, 0
	reteq	r12

	rsub	r9, r12, 32
	brle	1f

	lsr	r8, r10, r9
	lsl	r10, r10, r12
	lsl	r11, r11, r12
	or	r11, r8
	retal	r12

1:	neg	r9
	lsl	r11, r10, r9
	mov	r10, 0
	retal	r12
back to top