Function call instead of #define

Leon Pollak leonp at
Thu Oct 16 10:04:43 UTC 2008

Hello, all.

Can somebody explain:

Why file ../lib/libcpu/powerpc/shared/src/cach.c contains such functions as 

void _CPU_cache_flush_1_data_line(...) or
void _CPU_cache_invalidate_1_data_line(...)

as functions and not as macros?
I mean, why aren't they defined as macros in cache.h, for example? 

Considering the function
which may use
thousands of times, the performance improvement may be significant, no?

Where is my misunderstanding?

Thanks ahead.

More information about the users mailing list