OSDN Git Service
(root)
/
pf3gnuchains
/
sourceware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d0ff96
)
2003-01-31 Frank Ch. Eigler <fche@redhat.com>
author
fche
<fche>
Fri, 31 Jan 2003 17:10:59 +0000
(17:10 +0000)
committer
fche
<fche>
Fri, 31 Jan 2003 17:10:59 +0000
(17:10 +0000)
* log2.h: #undef log2, in case a macro collides with the function.
sid/component/cache/ChangeLog
patch
|
blob
|
history
sid/component/cache/log2.h
patch
|
blob
|
history
diff --git
a/sid/component/cache/ChangeLog
b/sid/component/cache/ChangeLog
index
44b7b00
..
9e96e81
100644
(file)
--- a/
sid/component/cache/ChangeLog
+++ b/
sid/component/cache/ChangeLog
@@
-1,3
+1,7
@@
+2003-01-31 Frank Ch. Eigler <fche@redhat.com>
+
+ * log2.h: #undef log2, in case a macro collides with the function.
+
2002-07-16 Dave Brolley <brolley@redhat.com>
* cache.h (cache): Add flush_and_invalidate_set_pin and
diff --git
a/sid/component/cache/log2.h
b/sid/component/cache/log2.h
index
1b485e7
..
057ddd8
100644
(file)
--- a/
sid/component/cache/log2.h
+++ b/
sid/component/cache/log2.h
@@
-25,6
+25,9
@@
bool power_of_two_p (const V& v1)
// Compute log2 (V).
+// Zap a possible math.h macro by this name
+#undef log2
+
template <typename V>
unsigned log2 (const V& v1)
{