notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix + some tweaks
[picodrive.git]
/
platform
/
gp2x
/
soc_pollux.c
diff --git
a/platform/gp2x/soc_pollux.c
b/platform/gp2x/soc_pollux.c
index
b6ec9ab
..
2cda031
100644
(file)
--- a/
platform/gp2x/soc_pollux.c
+++ b/
platform/gp2x/soc_pollux.c
@@
-219,9
+219,10
@@
unsigned int gp2x_get_ticks_us_(void)
unsigned int gp2x_get_ticks_ms_(void)
{
unsigned int gp2x_get_ticks_ms_(void)
{
+ /* approximate /= 1000 */
unsigned long long v64;
unsigned long long v64;
- v64 = (unsigned long long)gp2x_get_ticks_us_() * 4
195
;
- return v64 >>
2
2;
+ v64 = (unsigned long long)gp2x_get_ticks_us_() * 4
294968
;
+ return v64 >>
3
2;
}
static void timer_cleanup(void)
}
static void timer_cleanup(void)