Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57449
b: refs/heads/master
c: 176fd6c
h: refs/heads/master
i:
  57447: c8d54a0
v: v3
  • Loading branch information
Chris Zankel committed Jun 1, 2007
1 parent 78ef70a commit 65cc698
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54213baf643dd14d3bc06ca7575a817d79a350c2
refs/heads/master: 176fd6c96dcbc263eb1c61eae9fe2a33f23a876d
15 changes: 3 additions & 12 deletions trunk/include/asm-xtensa/div64.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,12 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2001 - 2005 Tensilica Inc.
* Copyright (C) 2001 - 2007 Tensilica Inc.
*/

#ifndef _XTENSA_DIV64_H
#define _XTENSA_DIV64_H

#include <linux/types.h>
#include <asm-generic/div64.h>

#define do_div(n,base) ({ \
int __res = n % ((unsigned int) base); \
n /= (unsigned int) base; \
__res; })

static inline uint64_t div64_64(uint64_t dividend, uint64_t divisor)
{
return dividend / divisor;
}
#endif
#endif /* _XTENSA_DIV64_H */

0 comments on commit 65cc698

Please sign in to comment.