Skip to content

Commit db6b7a8

Browse files
authored
[libc][NFC] Strip all training whitespace and missing newlines (llvm#124163)
1 parent 0290693 commit db6b7a8

File tree

40 files changed

+67
-67
lines changed

40 files changed

+67
-67
lines changed

libc/benchmarks/distributions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ As identified in the [automemcpy](https://research.google/pubs/pub50338/) paper:
3131

3232
## Note
3333

34-
Except for `GoogleD`, all distributions are gathered over one week worth of data.
34+
Except for `GoogleD`, all distributions are gathered over one week worth of data.

libc/benchmarks/gpu/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function(add_benchmark benchmark_name)
1010
"LINK_LIBRARIES;DEPENDS" # Multi-value arguments
1111
${ARGN}
1212
)
13-
13+
1414
if(NOT libc.src.time.clock IN_LIST TARGET_LLVMLIBC_ENTRYPOINTS)
1515
message(FATAL_ERROR "target does not support clock")
1616
endif()

libc/config/baremetal/riscv/entrypoints.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ if(LIBC_COMPILER_HAS_FIXED_POINT)
463463
libc.src.stdfix.kbits
464464
libc.src.stdfix.ukbits
465465
libc.src.stdfix.lkbits
466-
libc.src.stdfix.ulkbits
466+
libc.src.stdfix.ulkbits
467467
)
468468
endif()
469469

libc/config/linux/aarch64/entrypoints.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ set(TARGET_LIBM_ENTRYPOINTS
439439
libc.src.math.fabs
440440
libc.src.math.fabsf
441441
libc.src.math.fabsl
442-
libc.src.math.fadd
442+
libc.src.math.fadd
443443
libc.src.math.faddl
444444
libc.src.math.fadd
445445
libc.src.math.fdim

libc/config/linux/arm/entrypoints.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ set(TARGET_LIBM_ENTRYPOINTS
215215
libc.src.complex.cproj
216216
libc.src.complex.cprojf
217217
libc.src.complex.cprojl
218-
218+
219219
# fenv.h entrypoints
220220
libc.src.fenv.feclearexcept
221221
libc.src.fenv.fedisableexcept
@@ -268,7 +268,7 @@ set(TARGET_LIBM_ENTRYPOINTS
268268
libc.src.math.fabs
269269
libc.src.math.fabsf
270270
libc.src.math.fabsl
271-
libc.src.math.fadd
271+
libc.src.math.fadd
272272
libc.src.math.faddl
273273
libc.src.math.fadd
274274
libc.src.math.fdim

libc/config/linux/riscv/entrypoints.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ set(TARGET_LIBM_ENTRYPOINTS
432432
libc.src.math.fabs
433433
libc.src.math.fabsf
434434
libc.src.math.fabsl
435-
libc.src.math.fadd
435+
libc.src.math.fadd
436436
libc.src.math.faddl
437437
libc.src.math.fadd
438438
libc.src.math.fdim
@@ -630,7 +630,7 @@ if(LIBC_TYPES_HAS_CFLOAT128)
630630
)
631631
endif()
632632

633-
if(LIBC_TYPES_HAS_FLOAT128)
633+
if(LIBC_TYPES_HAS_FLOAT128)
634634
list(APPEND TARGET_LIBM_ENTRYPOINTS
635635
# math.h C23 _Float128 entrypoints
636636
libc.src.math.canonicalizef128

libc/config/linux/x86_64/entrypoints.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ set(TARGET_LIBM_ENTRYPOINTS
377377
libc.src.complex.cproj
378378
libc.src.complex.cprojf
379379
libc.src.complex.cprojl
380-
380+
381381
# fenv.h entrypoints
382382
libc.src.fenv.feclearexcept
383383
libc.src.fenv.fedisableexcept
@@ -440,7 +440,7 @@ set(TARGET_LIBM_ENTRYPOINTS
440440
libc.src.math.fabs
441441
libc.src.math.fabsf
442442
libc.src.math.fabsl
443-
libc.src.math.fadd
443+
libc.src.math.fadd
444444
libc.src.math.faddl
445445
libc.src.math.fadd
446446
libc.src.math.fdim
@@ -756,7 +756,7 @@ if(LIBC_TYPES_HAS_CFLOAT128)
756756
endif()
757757

758758
if(LIBC_TYPES_HAS_FLOAT128)
759-
list(APPEND TARGET_LIBM_ENTRYPOINTS
759+
list(APPEND TARGET_LIBM_ENTRYPOINTS
760760
# math.h C23 _Float128 entrypoints
761761
libc.src.math.canonicalizef128
762762
libc.src.math.ceilf128

libc/docs/dev/printf_behavior.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ If a number passed as a field width or precision value is out of range for an
173173
int, then it will be treated as the largest value in the int range
174174
(e.g. "%-999999999999.999999999999s" is the same as "%-2147483647.2147483647s").
175175

176-
If the field width is set to INT_MIN by using the '*' form,
176+
If the field width is set to INT_MIN by using the '*' form,
177177
e.g. printf("%*d", INT_MIN, 1), it will be treated as INT_MAX, since -INT_MIN is
178178
not representable as an int.
179179

libc/docs/dev/undefined_behavior.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ POSIX.1 leaves that when the name of a shared memory object does not begin with
7878
Handling of NULL arguments to the 's' format specifier
7979
------------------------------------------------------
8080
The C standard does not specify behavior for ``printf("%s", NULL)``. We will
81-
print the string literal ``(null)`` unless using the
82-
``LIBC_COPT_PRINTF_NO_NULLPTR_CHECKS`` option described in :ref:`printf
81+
print the string literal ``(null)`` unless using the
82+
``LIBC_COPT_PRINTF_NO_NULLPTR_CHECKS`` option described in :ref:`printf
8383
behavior<printf_behavior>`.
8484

8585
Unknown Math Rounding Direction

libc/docs/gpu/rpc.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ linked in by forwarding the static library to the device-side link job.
253253
Extensions
254254
----------
255255

256-
The opcode is a 32-bit integer that must be unique to the requested operation.
257-
All opcodes used by ``libc`` internally have the character ``c`` in the most
256+
The opcode is a 32-bit integer that must be unique to the requested operation.
257+
All opcodes used by ``libc`` internally have the character ``c`` in the most
258258
significant byte. Any other opcode is available for use outside of the ``libc``
259259
implementation.

0 commit comments

Comments
 (0)