about summary refs log tree commit diff
path: root/sysdeps/x86_64/ffsll.c
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2023-08-11 18:48:01 -0500
committerNoah Goldstein <goldstein.w.n@gmail.com>2023-09-11 22:48:07 -0500
commit86418cbed39c8826518f706f50fa3a3444505fdd (patch)
tree5be2e02724ea6e8ab58a8da2dbb3c16e09510bfe /sysdeps/x86_64/ffsll.c
parent1ebb55d5f406cb1f3427798daa17220cd7da5b9f (diff)
downloadglibc-86418cbed39c8826518f706f50fa3a3444505fdd.tar.gz
glibc-86418cbed39c8826518f706f50fa3a3444505fdd.tar.xz
glibc-86418cbed39c8826518f706f50fa3a3444505fdd.zip
x86: Fix incorrect scope of setting `shared_per_thread` [BZ# 30745]
The:

```
    if (shared_per_thread > 0 && threads > 0)
      shared_per_thread /= threads;
```

Code was accidentally moved to inside the else scope.  This doesn't
match how it was previously (before af992e7abd).

This patch fixes that by putting the division after the `else` block.

(cherry picked from commit 084fb31bc2c5f95ae0b9e6df4d3cf0ff43471ede)
Diffstat (limited to 'sysdeps/x86_64/ffsll.c')
0 files changed, 0 insertions, 0 deletions