]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[test] Add tests for 64-bit division
authorMichael Brown <mcb30@ipxe.org>
Thu, 24 Apr 2014 23:04:25 +0000 (00:04 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 25 Apr 2014 00:45:13 +0000 (01:45 +0100)
commitad7d5af5e19a016e484188a2c75818bb2d0a35db
tree69fdf23ec65cbe67e3791302697d62dbeca38f37
parentdce7107fc087092dc95b420504b26261933d5f73
[test] Add tests for 64-bit division

On a 32-bit system, 64-bit division is implemented using the libgcc
functions provided in __udivmoddi4.c etc.  Calls to these functions
are generated automatically by gcc, with a calling convention that is
somewhat empirical in nature.  Add these self-tests primarily as a
check that we are using the correct calling convention.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/tests/math_test.c