mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 16:22:29 +00:00
Fix some issues and do some code cleanup
This commit is contained in:
parent
1f229e4efc
commit
312ed5c67c
72 changed files with 880 additions and 982 deletions
|
@ -26,7 +26,9 @@
|
|||
* @assume stack addresses are always greater than heap addresses
|
||||
* @assume stack memory isn't stored beneath %rsp (-mno-red-zone)
|
||||
*/
|
||||
noasan bool _isheap(void *p) {
|
||||
return kAutomapStart <= (intptr_t)p &&
|
||||
(intptr_t)p < kAutomapStart + kAutomapSize;
|
||||
optimizesize noasan bool _isheap(void *p) {
|
||||
intptr_t x, y;
|
||||
x = kAutomapStart;
|
||||
y = x + kAutomapSize;
|
||||
return x <= (intptr_t)p && (intptr_t)p < y;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue