> On Aug 14, 2015, at 8:36 AM, David Woodhouse <dw...@infradead.org> wrote:
> 
> On Fri, 2015-08-14 at 08:13 -0700, Andrew Fish wrote:
>> 
>> https://github.com/tianocore/edk2/blob/master/MdeModulePkg/MdeModulePkg.dsc
>> [LibraryClasses.ARM, LibraryClasses.AARCH64]
>>  #
>>  # It is not possible to prevent ARM compiler calls to generic intrinsic 
>> functions.
>>  # This library provides the instrinsic functions generated by a given 
>> compiler.
>>  # [LibraryClasses.ARM] and NULL mean link this library into all ARM images.
>>  #
>>  NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
>> 
>> It is not a full set of intrinsics, just what is needed for the edk2 coding 
>> standard. 
> 
> Thanks. I note that the ARM implementation of __umoddi3 is there, but
> the IA32 version of the same function is in StdLib/LibC/CRT. Is there a
> reason for that?
> 

Well the ARM Intrinsic lib started out so we did not have to change the rules 
of how to do math. I seem to remember some folks tried to port some existing 
code, and ended up adding some extra functions to round out simple 64-bit math. 

I also seem to remember that LLVM has these math function coded in C with a BSD 
compatible license if you need to find a new one.

Thanks,

Andrew Fish

> -- 
> dwmw2


------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to