Igor Oliveira wrote on 2010-01-20 00:37: > Hi, > > These patches add support to dfrac, dldexp and fracexp opcodes. > The fracexp opcode i think it is the only opcode that use 2 DST registers. > The first one is used to store the fractional part(it store in a > double) and the second one is used to store the exponent part(it is a > int). > In the tests we can see it working. > > static void > +micro_dfrac(union tgsi_double_channel *dst, > + const union tgsi_double_channel *src) > +{ > + dst->d[0] = src->d[0] - floor(src->d[0]); > + dst->d[1] = src->d[1] - floor(src->d[0]); > + dst->d[2] = src->d[2] - floor(src->d[0]); > + dst->d[3] = src->d[3] - floor(src->d[0]) Igor,
Shouldn't the second line have floor(src->d[1]), and so on? ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev