repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: normalizing ttp constraints [PR115656]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
20000427-1.c
blob
add457ec121c23f3a42d07f490d519f2242cb590
1
int
lwidth
;
2
int
lheight
;
3
int
FindNearestPowerOf2
(
int
);
4
void
ConvertFor3dDriver
(
int
requirePO2
,
int
maxAspect
)
5
{
6
int
oldw
=
lwidth
,
oldh
=
lheight
;
7
8
lheight
=
FindNearestPowerOf2
(
lheight
);
9
while
(
lwidth
/
lheight
>
maxAspect
)
lheight
+=
lheight
;
10
}