[libc-commits] [libc] [libc][math][c23] Add entrypoints and tests for totalorder{f, l, f128} (PR #100593)

via libc-commits libc-commits at lists.llvm.org
Thu Jul 25 09:57:55 PDT 2024


overmighty wrote:

I'm not sure if you've used https://github.com/overmighty/llvm-dev-utils/blob/master/llvm_libc_add_math_function.py or not since the libc/src/math/totalorderf.h header has an extra character.

Here's how you could have used it:

```sh
for type in '' f l f128; do
  ./replace/with/path/to/llvm_libc_add_math_function.py "${type}" 'TYPE' 'totalorder' 'const TYPE *x, const TYPE *y' 'TotalOrderTest' 'LIST_TOTALORDER_TESTS'
done
```

For example:

```sh
for type in '' f l f128; do
  ~/projects/llvm-dev-utils/llvm_libc_add_math_function.py "${type}" 'TYPE' 'totalorder' 'const TYPE *x, const TYPE *y' 'TotalOrderTest' 'LIST_TOTALORDER_TESTS'
done
```

https://github.com/llvm/llvm-project/pull/100593


More information about the libc-commits mailing list