mirror of
https://github.com/ipxe/ipxe
synced 2026-02-05 19:12:46 +03:00
[build] Enable building with the Intel C compiler (icc)
This commit is contained in:
@@ -26,30 +26,28 @@
|
||||
#include <gpxe/crypto.h>
|
||||
#include <gpxe/md5.h>
|
||||
|
||||
#define __md5step __attribute__ (( regparm ( 3 ) ))
|
||||
|
||||
struct md5_step {
|
||||
u32 __md5step ( * f ) ( u32 b, u32 c, u32 d );
|
||||
u32 ( * f ) ( u32 b, u32 c, u32 d );
|
||||
u8 coefficient;
|
||||
u8 constant;
|
||||
};
|
||||
|
||||
static u32 __md5step f1(u32 b, u32 c, u32 d)
|
||||
static u32 f1(u32 b, u32 c, u32 d)
|
||||
{
|
||||
return ( d ^ ( b & ( c ^ d ) ) );
|
||||
}
|
||||
|
||||
static u32 __md5step f2(u32 b, u32 c, u32 d)
|
||||
static u32 f2(u32 b, u32 c, u32 d)
|
||||
{
|
||||
return ( c ^ ( d & ( b ^ c ) ) );
|
||||
}
|
||||
|
||||
static u32 __md5step f3(u32 b, u32 c, u32 d)
|
||||
static u32 f3(u32 b, u32 c, u32 d)
|
||||
{
|
||||
return ( b ^ c ^ d );
|
||||
}
|
||||
|
||||
static u32 __md5step f4(u32 b, u32 c, u32 d)
|
||||
static u32 f4(u32 b, u32 c, u32 d)
|
||||
{
|
||||
return ( c ^ ( b | ~d ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user