LLVM 20.0.0git
Macros
MD5.cpp File Reference
#include "llvm/Support/MD5.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Endian.h"
#include <array>
#include <cstdint>
#include <cstring>

Go to the source code of this file.

Macros

#define F(x, y, z)   ((z) ^ ((x) & ((y) ^ (z))))
 
#define G(x, y, z)   ((y) ^ ((z) & ((x) ^ (y))))
 
#define H(x, y, z)   ((x) ^ (y) ^ (z))
 
#define I(x, y, z)   ((y) ^ ((x) | ~(z)))
 
#define STEP(f, a, b, c, d, x, t, s)
 
#define SET(n)
 
#define GET(n)   (InternalState.block[(n)])
 

Macro Definition Documentation

◆ F

#define F (   x,
  y,
 
)    ((z) ^ ((x) & ((y) ^ (z))))

◆ G

#define G (   x,
  y,
 
)    ((y) ^ ((z) & ((x) ^ (y))))

Definition at line 56 of file MD5.cpp.

◆ GET

#define GET (   n)    (InternalState.block[(n)])

Definition at line 73 of file MD5.cpp.

◆ H

#define H (   x,
  y,
 
)    ((x) ^ (y) ^ (z))

Definition at line 57 of file MD5.cpp.

◆ I

#define I (   x,
  y,
 
)    ((y) ^ ((x) | ~(z)))

◆ SET

#define SET (   n)
Value:
(InternalState.block[(n)] = (MD5_u32plus)ptr[(n)*4] | \
((MD5_u32plus)ptr[(n)*4 + 1] << 8) | \
((MD5_u32plus)ptr[(n)*4 + 2] << 16) | \
((MD5_u32plus)ptr[(n)*4 + 3] << 24))

Definition at line 68 of file MD5.cpp.

◆ STEP

#define STEP (   f,
  a,
  b,
  c,
  d,
  x,
  t,
 
)
Value:
(a) += f((b), (c), (d)) + (x) + (t); \
(a) = (((a) << (s)) | (((a) & 0xffffffff) >> (32 - (s)))); \
(a) += (b);

Definition at line 61 of file MD5.cpp.