Definition of int log2(int) problemat... Log Out | Topics | Search
Moderators | Edit Profile

Discussion about George's Research » METIS - Serial Graph Partitioning » Bug Reports » Definition of int log2(int) problematic « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Toon Knapen
Posted From: 212.100.178.228
Posted on Thursday, August 26, 2004 - 06:24 am:   

Metis declares and defines the function 'int log2(int)'. However C99 already defines 'double log2(double)' and 'float log2f(float)'. Due to the lack of overloading of functions, C99 will complain to find 2 definitions for the symbol 'log2'.

I therefore suggest to rename the function in metis to 'log2i' or even better 'int metis_log2i(int)'.

Add Your Message Here
Posting is currently disabled in this topic. Contact your discussion moderator for more information.

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration