3 ms·
A lot of these are (as drallison mentioned) either syntactic sugar or 'missing the point of C.' The author would like an exponent operator but this is something
by wickedchicken 16y ago
A lot of these are (as drallison mentioned) either syntactic sugar or 'missing the point of C.' The author would like an exponent operator but this is something complex enough to require a true library function. Almost every C operator can be implemented in a handful of opcodes -- add, subtract, function call and memory dereference. Why include such an expensive function as a core operator instead of the library?
- wlievens 16y agoAnd conversely, translating a library function into simple opcodes (rather than a real call) should be any decent compiler's responsibility, using intrinsics.