OSDN Git Service
(root)
/
android-x86
/
external-s2tc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
split compressor into multiple files (preparation for libtxc_dxtn compat)
[android-x86/external-s2tc.git]
/
s2tc_common.h
1
#ifndef S2TC_COMMON_H
2
#define S2TC_COMMON_H
3
4
template <class T> inline T min(const T &a, const T &b)
5
{
6
if(b < a)
7
return b;
8
return a;
9
}
10
11
template <class T> inline T max(const T &a, const T &b)
12
{
13
if(b > a)
14
return b;
15
return a;
16
}
17
18
#endif