Fabcoin Core  0.16.2
P2P Digital Currency
Endianness.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "CompilerHelper.h"
4 
5 namespace dev
6 {
7 namespace eth
8 {
9 namespace jit
10 {
11 
12 struct Endianness
13 {
14  static llvm::Value* toBE(IRBuilder& _builder, llvm::Value* _word) { return bswapIfLE(_builder, _word); }
15  static llvm::Value* toNative(IRBuilder& _builder, llvm::Value* _word) { return bswapIfLE(_builder, _word); }
16 
17 private:
18  static llvm::Value* bswapIfLE(IRBuilder& _builder, llvm::Value* _word);
19 };
20 
21 }
22 }
23 }
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
Definition: Arith256.cpp:15
Config::Value_type Value
static llvm::Value * toBE(IRBuilder &_builder, llvm::Value *_word)
Definition: Endianness.h:14
static llvm::Value * bswapIfLE(IRBuilder &_builder, llvm::Value *_word)
Definition: Endianness.cpp:17
static llvm::Value * toNative(IRBuilder &_builder, llvm::Value *_word)
Definition: Endianness.h:15
llvm::IRBuilder<> IRBuilder