search for: platformpath

Displaying 4 results from an estimated 4 matches for "platformpath".

2012 Jul 29
0
[LLVMdev] rotate
...nclude <stdlib.h> #include <stdint.h> uint32_t ror(uint32_t input, size_t rot_bits) { return (input >> rot_bits) | (input << ((sizeof(input) << 3) - rot_bits)); } ====== Then compile with (assuming you are on OS X): ====== ISYSROOT=$(xcodebuild -sdk macosx -version PlatformPath)/Developer/SDKs/MacOSX10.8.sdk $(xcrun -find clang) -isysroot $ISYSROOT ror.c -c -S -Os -o - ====== yielding an assembly output of: ====== .section __TEXT,__text,regular,pure_instructions .globl _rotr _rotr: ## @rotr .cfi_startproc ## BB#0: pushq %rbp Ltmp2: ....
2012 Jul 29
2
[LLVMdev] rotate
in C or C++, how can I get clang/llvm to try and do a "rotate". (want to test this code in the mips16 port) i.e. emit rotr node. tia. reed
2012 Jul 29
3
[LLVMdev] rotate
...> > uint32_t ror(uint32_t input, size_t rot_bits) > { > return (input>> rot_bits) | (input<< ((sizeof(input)<< 3) - rot_bits)); > } > ====== > > Then compile with (assuming you are on OS X): > ====== > ISYSROOT=$(xcodebuild -sdk macosx -version PlatformPath)/Developer/SDKs/MacOSX10.8.sdk > $(xcrun -find clang) -isysroot $ISYSROOT ror.c -c -S -Os -o - > ====== > > yielding an assembly output of: > ====== > .section __TEXT,__text,regular,pure_instructions > .globl _rotr > _rotr: ## @rotr > ....
2012 Jul 29
0
[LLVMdev] rotate
...input, size_t rot_bits) >> { >> return (input>> rot_bits) | (input<< ((sizeof(input)<< 3) - rot_bits)); >> } >> ====== >> >> Then compile with (assuming you are on OS X): >> ====== >> ISYSROOT=$(xcodebuild -sdk macosx -version PlatformPath)/Developer/SDKs/MacOSX10.8.sdk >> $(xcrun -find clang) -isysroot $ISYSROOT ror.c -c -S -Os -o - >> ====== >> >> yielding an assembly output of: >> ====== >> .section __TEXT,__text,regular,pure_instructions >> .globl _rotr >> _rotr:...