top | item 46255264

IsEven(int32_t) in O(1)

1 points| ceayo | 2 months ago |ceayo.neocities.org

4 comments

order

metadope|2 months ago

I don't see (C) the joke.

  inline bool isEven(int32_t x) { return (0 == (x & 1) ); }

ceayo|2 months ago

So after reading a link from here from yesterday I decided to make my own implementation for checking evenness of numbers, and making it more optimized.

c-linkage|2 months ago

Yeah, but where are the performance numbers? :D