mirror of
https://github.com/libretro/x86-assembly-cheat.git
synced 2026-11-07 12:47:59 -10:00
16 lines
280 B
C
16 lines
280 B
C
/*
|
|
Will `abs(-1)` be inlined, or precalculated?
|
|
The compiler coud know that it is deterministic and has no side effects.
|
|
|
|
GCC 4.8: yes, even at -O0.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main() {
|
|
printf("%d\n", abs(-1));
|
|
printf("%d\n", abs(-1));
|
|
return 0;
|
|
}
|