Displaying 1 result from an estimated 1 matches for "a313b".
Did you mean:
a13b
2012 May 21
0
[klibc:master] lseek: give gcc a little optimization hint
...eek() at least on i386.
Copy it into an unsigned long long before breaking it apart seems to
help.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
usr/klibc/lseek.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/usr/klibc/lseek.c b/usr/klibc/lseek.c
index a313bed..f262d19 100644
--- a/usr/klibc/lseek.c
+++ b/usr/klibc/lseek.c
@@ -18,13 +18,14 @@ extern int __llseek(int fd, unsigned long hi, unsigned long lo, off_t * res,
off_t lseek(int fd, off_t offset, int whence)
{
+ unsigned long long ullo = offset;
off_t result;
int rv;
- rv = __llseek(fd,...