Article View: gnu.gcc.bug
Article #2113usage of inline functions
From: Michael D. Prange
Date: Mon, 02 Jan 1989 16:30
Date: Mon, 02 Jan 1989 16:30
10 lines
900 bytes
900 bytes
I have a question about the usage of inline functions. I have several source files which use complex arithmetic functions such as Cadd. Many of these arithmetic functions are so simple that inline expansions would probably improve efficiency. My question is this: will inline functions only "macro expand" in the source file where they are defined? If so, is the proper approach to #include these arithmetic functions as inline static at the top of each source file that uses them? Michael
Technical Details
Message-ID:
<8901021743.AA05615@prep.ai.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!ERL.MIT.EDU!prangeShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!ERL.MIT.EDU!prange From: prange@ERL.MIT.EDU (Michael D. Prange) Newsgroups: gnu.gcc.bug Subject: usage of inline functions Message-ID: <8901021743.AA05615@prep.ai.mit.edu> Date: 2 Jan 89 16:30:13 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 10