diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-02-07 21:57:28 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-02-07 21:57:28 +0000 |
| commit | d627bedae5a3445b460c9826e3fe0688490480d3 (patch) | |
| tree | ba456daeb2e51085a6e83a811b6fb526d918a33b /sys | |
| parent | 2028c0cdb9652725ca0822b5d23c80d3b9359dfa (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/sys/time.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/sys/sys/time.h b/sys/sys/time.h index bfa8193d6a6c3..396b62612a2c0 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -89,35 +89,17 @@ struct bintime { static __inline void bintime_addx(struct bintime *bt, u_int64_t x) { -#ifdef __i386 - __asm( " - addl %%eax,4(%%ecx) - adcl %%edx,8(%%ecx) - adcl $0,0(%%ecx) - " : : "A" (x), "c" (bt)); -#else u_int64_t u; u = bt->frac; bt->frac += x; if (u > bt->frac) bt->sec++; -#endif } static __inline void bintime_add(struct bintime *bt, struct bintime *bt2) { -#ifdef __i386 - __asm( " - movl 4(%%edx),%%eax - addl %%eax,4(%%ecx) - movl 8(%%edx),%%eax - adcl %%eax,8(%%ecx) - movl 0(%%edx),%%eax - adcl %%eax,0(%%ecx) - " : : "c" (bt), "d" (bt2)); -#else u_int64_t u; u = bt->frac; @@ -125,22 +107,11 @@ bintime_add(struct bintime *bt, struct bintime *bt2) if (u > bt->frac) bt->sec++; bt->sec += bt2->sec; -#endif } static __inline void bintime_sub(struct bintime *bt, struct bintime *bt2) { -#ifdef __i386 - __asm( " - movl 4(%%edx),%%eax - subl %%eax,4(%%ecx) - movl 8(%%edx),%%eax - sbbl %%eax,8(%%ecx) - movl 0(%%edx),%%eax - sbbl %%eax,0(%%ecx) - " : : "c" (bt), "d" (bt2)); -#else u_int64_t u; u = bt->frac; @@ -148,7 +119,6 @@ bintime_sub(struct bintime *bt, struct bintime *bt2) if (u < bt->frac) bt->sec--; bt->sec -= bt2->sec; -#endif } static __inline void |
