Re: [PATCH net 1/2] overflow-arith: begin to add support for overflow builtin functions

2015-10-16 Thread David Miller
From: Hannes Frederic Sowa Date: Thu, 15 Oct 2015 14:07:04 +0200 > The idea of the overflow-arith.h header is to collect overflow checking > functions in one central place. > > If gcc compiler supports the __builtin_overflow_* builtins we use them > because they might give better performance, ot

[PATCH net 1/2] overflow-arith: begin to add support for overflow builtin functions

2015-10-15 Thread Hannes Frederic Sowa
The idea of the overflow-arith.h header is to collect overflow checking functions in one central place. If gcc compiler supports the __builtin_overflow_* builtins we use them because they might give better performance, otherwise the code falls back to normal overflow checking functions. The built