Fri, 07 Aug 2009 17:02:33 -0700, Robert Jacques wrote: >> Moreover compiler intrinsics are >> functions which compiler recognizes and treats specially, usually by >> replacing them with a single processor instruction. > > We weren't discussing implementation with intrinsics, but as with a > standard library function.
Intrinsics were Yigal's point which he made twice: Thu, 06 Aug 2009 23:34:21 +0300, Yigal Chripun wrote: > auto f = std.math.div(5, 2); // intristic that does integer division Fri, 07 Aug 2009 11:22:31 +0300, Yigal Chripun wrote: > you've ignored case f which seems to me the most important: instead of > currently 5/2 == 2 there should be a div intristic function such that > div(5, 2) == 2 and that intristic will be the appropriate ASM > instruction for integer division. Well, he called them "intristics," bit it's easy to see what he actually wanted to say.
