Commit b527cdc
committed
math: numbers: only define SOF gcd() if not already defined
Zephyr commit ("sys: util: Add gcd and lcm utilities") added a version
of gcd() to sys/util.h that now can conflict with SOF numbers.h
definition of gcd().
Make the SOF definition conditional. The Zephyr default gcd() version
takes unsigned numbers while SOF version took signed, but it seems
SOF existing usage is fine to make this change.
Link: #10428
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent e00764e commit b527cdc
2 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
0 commit comments