cosmopolitan/third_party/nsync/compat.S

53 lines
2.4 KiB
ArmAsm
Raw Normal View History

2022-09-13 08:46:29 +00:00
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│
vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi
Copyright 2022 Justine Alexandra Roberts Tunney
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
*/
#include "libc/calls/struct/timespec.h"
2022-09-13 08:46:29 +00:00
#include "libc/macros.internal.h"
nsync_time_now:
jmp timespec_real
2022-09-13 08:46:29 +00:00
.endfn nsync_time_now,globl
nsync_time_add:
jmp timespec_add
2022-09-13 08:46:29 +00:00
.endfn nsync_time_add,globl
nsync_time_sub:
jmp timespec_sub
2022-09-13 08:46:29 +00:00
.endfn nsync_time_sub,globl
nsync_time_cmp:
jmp timespec_cmp
2022-09-13 08:46:29 +00:00
.endfn nsync_time_cmp,globl
nsync_time_ms:
jmp timespec_frommillis
2022-09-13 08:46:29 +00:00
.endfn nsync_time_ms,globl
nsync_time_us:
jmp timespec_frommicros
2022-09-13 08:46:29 +00:00
.endfn nsync_time_us,globl
2022-10-08 09:40:44 +00:00
nsync_time_sleep:
jmp timespec_sleep
2022-10-08 09:40:44 +00:00
.endfn nsync_time_us,globl
nsync_time_sleep_until:
jmp timespec_sleep_until
2022-10-08 09:40:44 +00:00
.endfn nsync_time_us,globl