[all-commits] [llvm/llvm-project] b8daa4: [libc] Implement `timespec_get` (#116102)

Petr Hosek via All-commits all-commits at lists.llvm.org
Mon Dec 2 14:30:11 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b8daa45a566b15d929a812d85f3f1ff8c868c889
      https://github.com/llvm/llvm-project/commit/b8daa45a566b15d929a812d85f3f1ff8c868c889
  Author: Petr Hosek <phosek at google.com>
  Date:   2024-12-02 (Mon, 02 Dec 2024)

  Changed paths:
    M libc/config/baremetal/arm/entrypoints.txt
    M libc/config/baremetal/riscv/entrypoints.txt
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/riscv/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/include/llvm-libc-macros/time-macros.h
    M libc/newhdrgen/yaml/time.yaml
    M libc/spec/stdc.td
    M libc/src/time/CMakeLists.txt
    A libc/src/time/baremetal/CMakeLists.txt
    A libc/src/time/baremetal/timespec_get.cpp
    M libc/src/time/gpu/CMakeLists.txt
    A libc/src/time/gpu/timespec_get.cpp
    M libc/src/time/linux/CMakeLists.txt
    A libc/src/time/linux/timespec_get.cpp
    A libc/src/time/timespec_get.h
    M libc/test/src/time/CMakeLists.txt
    A libc/test/src/time/timespec_get_test.cpp

  Log Message:
  -----------
  [libc] Implement `timespec_get` (#116102)

`timespec_get` is C standard counterpart to POSIX `clock_gettime`. On
Linux we simply use `clock_gettime`. On baremetal we introduce a new
external API `__llvm_libc_timespec_get_utc` that should be implemented
by the vendor.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list