basic/math-util: drop libm where possible
- test-random-util is reworked to not use sqrt() - pretty-print.c inlines ceil() so libm doesn't have to be linked into libshared - We add fno-math-errno to allow inlining of more math functions by not requiring standard math functions to set errno on invalid input.
This commit is contained in:
committed by
Daan De Meyer
parent
6891016149
commit
933a45835f
@@ -425,6 +425,11 @@ possible_common_cc_flags = [
|
||||
'-fstack-protector',
|
||||
'-fstack-protector-strong',
|
||||
'-fstrict-flex-arrays=3',
|
||||
# We don't read errno from any libm call, and the math-errno fallback
|
||||
# forces a DT_NEEDED on libm via the cold error path even when the hot
|
||||
# path is a single hardware instruction (sqrtsd, etc.). Drop it so the
|
||||
# builtins lower to pure hardware instructions.
|
||||
'-fno-math-errno',
|
||||
'--param=ssp-buffer-size=4',
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user