Displaying 3 results from an estimated 3 matches for "sbbb".
Did you mean:
bbb
2010 Mar 28
2
[LLVMdev] Which floating-point comparison?
I notice llvm provides both ordered and unordered variants of
floating-point comparison. Which of these is the right one to use by
default? I suppose the two criteria would be, in order of importance:
1. Which is more efficient (more directly maps to typical hardware)?
2. Which is more familiar (more like the way C and Fortran do it)?
2010 Mar 28
0
[LLVMdev] Which floating-point comparison?
...; <i1> [#uses=1]
ret i1 %0
}
$ Debug/bin/llc <test.ll
.section __TEXT,__text,regular,pure_instructions
.globl _less
.align 4, 0x90
_less: ## @less
## BB#0: ## %entry
movsd 4(%esp), %xmm0
ucomisd 12(%esp), %xmm0
sbbb %al, %al
andb $1, %al
ret
> 2. Which is more familiar (more like the way C and Fortran do it)?
You can use http://llvm.org/demo/ to figure that out.
2011 Aug 10
1
Floats in Microsoft Basic format
...igned char *)src4;
unsigned char *ieee = (unsigned char *)dest4;
unsigned char sign = 0x00;
unsigned char ieee_exp = 0x00;
int i;
/* MS Binary Format */
/* byte order => m3 | m2 | m1 | exponent */
/* m1 is most significant byte => sbbb|bbbb */
/* m3 is the least significant byte */
/* m = mantissa byte */
/* s = sign bit */
/* b = bit */
sign = msbin[2] & 0x80; /* 1000|0000b */
/* IEEE Single Preci...