summaryrefslogtreecommitdiffstats
path: root/include/linux/math64.h
Commit message (Collapse)AuthorAgeFilesLines
* include: <linux/math64.h>: include header for __always_inline definitionAhmad Fatoum2021-02-191-0/+1
| | | | | | | | | | The Linux <linux/math64.h> depends on __always_inline being defined prior. Fix this at our side now to avoid a build failure when using it to replace <asm-generic/div64.h> later on. Fixes: f933da28cf3f ("include: <linux/math64.h>: sync with upstream") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* include: <linux/math64.h>: sync with upstreamAhmad Fatoum2021-01-071-5/+206
| | | | | | | | | | | | | | | | | | The header implements definitions for the 64-bit division helpers on 64-bit builds only. For 32-bit builds, it can only provide prototypes and the actual implementation will need to come from elsewhere. We didn't have any out-of-line definitions in barebox with the result that functions like div_s64_rem() were so far only usable in 64-bit barebox builds. On 32-bit builds, they would result in a linker error. Import the Linux v5.11-rc1 generic out-of-line 64-bit math on 32-bit implementation to fix this. While at it, synchronize the header to reduce diff to upstream. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* import include/linux/math64.hJean-Christophe PLAGNIOL-VILLARD2012-10-151-0/+121
need by mtd_dataflash Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>